/* =============================================
   css/pages/auth.css — Login + Signup styles
   ============================================= */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 20, 40, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow:
    0 0 40px rgba(0, 120, 255, 0.25),
    0 0 80px rgba(0, 120, 255, 0.15);
  border: 1px solid rgba(0, 150, 255, 0.15);
}

/* ── Branding ── */
.auth-brand {
  text-align: center;
  margin-bottom: 30px;
}
.auth-brand img {
  width: 60px;
  margin-bottom: 12px;
}
.auth-brand h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #3db4ff, #6ed0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.auth-brand p {
  font-size: 14px;
  color: #9bb3d9;
  margin-top: 4px;
}

/* ── Form fields ── */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.label-text {
  font-size: 13px;
  margin-bottom: 6px;
  color: #8ca2c9;
}
.field input {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 150, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  box-sizing: border-box;
}
.field input:focus {
  border-color: #3db4ff;
  box-shadow: 0 0 12px rgba(61, 180, 255, 0.4);
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #0078ff, #00c6ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-link {
  background: none;
  border: none;
  color: #3db4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link-gray {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  cursor: pointer;
  margin-top: 14px;
  text-align: center;
  padding: 8px 0;
}
.btn-link-gray:hover { color: rgba(255,255,255,0.6); }

/* ── Messages ── */
.field-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-bottom: 10px;
  min-height: 16px;
}
.field-success {
  color: #00e5a0;
  font-size: 12px;
  margin-bottom: 10px;
  min-height: 16px;
}
.hidden { display: none !important; }

/* ── Auth links ── */
.auth-link {
  color: #3db4ff;
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

.auth-footer {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #6e86ad;
}

/* ── OTP Phase ── */
.otp-info {
  text-align: center;
  margin-bottom: 28px;
}
.otp-icon {
  font-size: 52px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(0,150,255,0.6));
}
.otp-sent-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.otp-sub {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* 6 OTP input boxes */
.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.otp-box {
  width: 44px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid rgba(0,120,255,0.4);
  background: rgba(0,40,100,0.3);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  caret-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.otp-box:focus {
  border-color: #3db4ff;
  box-shadow: 0 0 0 3px rgba(61,180,255,0.2);
  background: rgba(0,80,180,0.35);
}

/* Shake on wrong OTP */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.shake { animation: shake 0.45s ease; }

/* Resend timer */
.otp-resend {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  min-height: 24px;
}

/* ── Extra OTP box fixes for deployed environments ── */
.otp-boxes {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}
.otp-box {
  width: 44px !important;
  height: 52px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(0,120,255,0.4) !important;
  background: rgba(0,40,100,0.3) !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  text-align: center !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.otp-box:focus {
  border-color: #3db4ff !important;
  box-shadow: 0 0 0 3px rgba(61,180,255,0.2) !important;
  background: rgba(0,80,180,0.35) !important;
}
