* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #1a1a1a, #0b0b0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* CARD */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  animation: fadeUp .4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HEADER */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  margin: 0;
  font-size: 26px;
}

.auth-header p {
  margin-top: 6px;
  font-size: 14px;
  color: #aaa;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form input {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 14px;
}

.auth-form input:focus {
  outline: none;
  border-color: #5ddcff;
  box-shadow: 0 0 0 2px rgba(93,220,255,0.2);
}

/* BUTTON */
.auth-form button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #5ddcff, #c77dff);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.auth-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(93,220,255,0.35);
}

.auth-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FOOTER */
.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.auth-footer a {
  color: #5ddcff;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ERROR */
    .error-box{
      background:rgba(255,0,0,.1);
      border:1px solid rgba(255,0,0,.25);
      color:#dc2626;
      padding:10px 12px;
      border-radius:12px;
      font-size:13px;
      margin-bottom:14px;
      text-align:center;
    }

@media (max-width: 480px) {
  .auth-card {
    margin: 16px;
    padding: 24px;
  }

  .auth-header h1 {
    font-size: 22px;
  }
}


.field {
  position: relative;
}

.field input {
  width: 100%;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 14px;
}

.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 13px;
  pointer-events: none;
  transition: .2s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: #5ddcff;
}

/* PASSWORD TOGGLE */
.password-field span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: .7;
}

/* STRENGTH */
.strength {
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.strength .bar {
  height: 100%;
  width: 0%;
  transition: width .3s, background .3s;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 22px;
  }

  .submit {
    font-size: 14px;
  }
}
