/* ===========================
   AUTH SHARED STYLES
=========================== */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #000;
}

.auth-card {
  width: min(420px, 95vw);
  padding: 30px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 0, 0, 0.75);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.3),
    0 0 50px rgba(255, 215, 0, 0.15),
    inset 0 0 20px rgba(255, 215, 0, 0.05);
  text-align: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(15px);
  animation: authFadeIn 0.5s ease forwards;
}

@keyframes authFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 15px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.65));
  display: block;
}

.auth-title {
  color: #FFD700;
  margin: 10px 0 5px;
  font-size: 1.8rem;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.65);
  line-height: 1.2;
}

.auth-sub {
  color: #cfcfcf;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ===========================
   REFERRAL BANNER
=========================== */
.ref-banner {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
  color: #ddd;
  font-size: 0.95rem;
}

.ref-banner strong {
  color: #FFD700;
}

/* ===========================
   FORM & FIELDS
=========================== */
.auth-form {
  text-align: left;
  margin-top: 15px;
}

.field {
  display: block;
  margin: 18px 0;
}

.field > span,
.field > label > span {
  display: block;
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(10, 10, 10, 0.8);
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 50px;
  font-family: 'Orbitron', sans-serif;
}

.field input:hover {
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.field input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

/* Input with icon wrapper */
.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.3s ease;
  min-height: 50px;
}

.input-wrap:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.input-wrap:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

.input-wrap .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #FFD700;
  opacity: 0.9;
}

.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 14px 8px;
  font-size: 1rem;
  min-height: auto;
  font-family: 'Orbitron', sans-serif;
}

.input-wrap input::placeholder {
  color: #888;
}

/* Password wrapper */
.pw-wrap {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.3s ease;
  min-height: 50px;
}

.pw-wrap:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.pw-wrap:focus-within {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

.pw-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
  padding: 14px 8px;
  min-height: auto;
  font-family: 'Orbitron', sans-serif;
}

/* Password visibility toggle */
.pw-toggle {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: #FFD700;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
}

.pw-toggle:hover {
  color: #fff8b0;
  transform: scale(1.15);
  background: rgba(255, 215, 0, 0.1);
}

/* ===========================
   BUTTONS
=========================== */
.btn-glow {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  background: #FFD700;
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 25px #FFD700, 0 0 50px rgba(255, 215, 0, 0.6);
  }
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px #FFD700, 0 0 50px rgba(255, 215, 0, 0.6);
}

.btn-glow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

.btn-outline {
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  font-weight: 700;
  border: 2px solid rgba(255, 215, 0, 0.4);
  background: transparent;
  color: #FFD700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* ===========================
   MESSAGES
=========================== */
.auth-msg {
  margin-top: 15px;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  min-height: 20px;
}

.auth-msg.success {
  color: #4cff4c;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
}

.auth-msg.error {
  color: #ff6b6b;
  background: rgba(255, 99, 71, 0.1);
  border: 1px solid rgba(255, 99, 71, 0.3);
}

/* ===========================
   MISC
=========================== */
.tiny-note {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.4;
  text-align: center;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 44px;
}

.auth-link:hover {
  text-shadow: 0 0 12px #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.forgot {
  margin-top: 12px;
  text-align: center;
}

.forgot a {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 8px;
  display: inline-block;
  min-height: 44px;
  line-height: 1.5;
}

.forgot a:hover {
  text-shadow: 0 0 8px #FFD700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   CHECKBOX FIELD
=========================== */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  text-align: left;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #FFD700;
}

.checkbox-field a {
  color: #FFD700;
  text-decoration: none;
}

.checkbox-field a:hover {
  text-shadow: 0 0 8px #FFD700;
}

/* ===========================
   PASSWORD STRENGTH INDICATOR
=========================== */
.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #888;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.strength-weak   { background: #ff4444; width: 33%; }
.strength-fill.strength-medium { background: #ffaa00; width: 66%; }
.strength-fill.strength-strong { background: #00cc44; width: 100%; }

/* ===========================
   STEP INDICATOR (RESET PAGE)
=========================== */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #FFD700;
  transform: scale(1.3);
}

/* ===========================
   RESPONSIVE – TABLET
=========================== */
@media (max-width: 768px) {
  .auth-wrap {
    padding: 15px;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .auth-logo {
    width: 80px;
  }

  .field input,
  .input-wrap input,
  .pw-wrap input {
    font-size: 16px; /* Prevent iOS keyboard zoom */
  }

  .btn-glow,
  .btn-outline {
    padding: 14px;
    min-height: 50px;
    font-size: 1rem;
  }
}

/* ===========================
   RESPONSIVE – SMALL MOBILE
=========================== */
@media (max-width: 480px) {
  .auth-wrap {
    padding: 10px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .auth-card {
    padding: 20px 18px;
    border-radius: 12px;
    width: min(380px, 92vw);
  }

  .auth-title {
    font-size: 1.5rem;
    margin: 8px 0 4px;
  }

  .auth-sub {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .auth-logo {
    width: 70px;
    margin-bottom: 12px;
  }

  .field {
    margin: 15px 0;
  }

  .btn-glow,
  .btn-outline {
    padding: 14px;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .auth-msg {
    font-size: 0.95rem;
    padding: 10px;
    margin-top: 12px;
  }

  .tiny-note {
    font-size: 0.85rem;
    margin-top: 15px;
  }

  .auth-link {
    font-size: 0.95rem;
    padding: 6px 12px;
    margin-top: 12px;
  }

  .actions {
    gap: 10px;
    margin-top: 15px;
  }
}

/* ===========================
   LANDSCAPE / LOW HEIGHT
=========================== */
@media (max-height: 600px) and (orientation: landscape) {
  .auth-wrap {
    padding: 10px;
    align-items: flex-start;
    min-height: auto;
  }

  .auth-card {
    margin: 20px 0;
  }
}

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .btn-glow,
  .field input,
  .pw-toggle,
  .btn-outline {
    animation: none;
    transition: none;
  }
}
