/* Reset */
* { box-sizing: border-box; margin:0; padding:0; }
html, body { height:100%; font-family: 'Segoe UI', Roboto, sans-serif; }
body {
  display:flex;
  justify-content:center;
  align-items:center;
  background-color:#0d0d0d;
  color:#fff;
}

/* Form container */
.form {
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: 360px;
  width:100%;
  padding: 24px;
  border-radius: 20px;
  background-color: #1a1a1a;
  border:1px solid #333;
  animation: fadeIn .5s ease;
}

.title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
  color: #00bfff;
  margin-bottom:6px;
}

.title::before,
.title::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  left: 0;
  background-color: #00bfff;
}
.title::before {
  width: 18px;
  height: 18px;
}
.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.message, .signin {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.signin { text-align:center; margin-top:8px; }
.signin a { color:#00bfff; text-decoration:none; }
.signin a:hover { text-decoration: underline; }

.flex { display:flex; gap:8px; }

/* Labels */
.form label { position:relative; flex:1; }
.form label .input {
  background-color:#333;
  color:#fff;
  width:100%;
  padding:20px 8px 6px 10px;
  border:1px solid rgba(105,105,105,0.4);
  border-radius:10px;
  font-size:15px;
}
.form label .input + span {
  color:rgba(255,255,255,.5);
  position:absolute;
  left:10px; top:12px;
  font-size:0.9em;
  pointer-events:none;
  transition:0.3s ease;
}
.form label .input:focus + span,
.form label .input:valid + span {
  color:#00bfff;
  top:4px;
  font-size:0.7em;
  font-weight:600;
}

/* Button */
.submit {
  border:none;
  outline:none;
  padding:12px;
  border-radius:10px;
  color:#fff;
  font-size:16px;
  font-weight:600;
  background-color:#00bfff;
  cursor:pointer;
  transition:background .2s, transform .1s;
}
.submit:hover { background-color:#0099cc; }
.submit:active { transform:scale(0.97); }

/* Flash message */
.flash {
  background:#222;
  color:#00bfff;
  padding:10px;
  border-radius:8px;
  text-align:center;
  margin-bottom:8px;
  font-size:14px;
}

/* Animations */
@keyframes pulse {
  from { transform: scale(0.9); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity:0; transform:translateY(20px);}
  to { opacity:1; transform:translateY(0);}
}