/* ============================================================
   AffairOva — Auth Pages CSS
   Login, Register, Admin Login
   ============================================================ */

/* ── AUTH WRAPPER ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,125,210,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  bottom: 80px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,134,10,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── AUTH HEADER ────────────────────────────────────────────── */
.auth-header {
  padding: 28px 40px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.auth-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.3px;
}
.auth-logo span { color: var(--gold-light); }

/* ── AUTH BOX ───────────────────────────────────────────────── */
.auth-box {
  max-width: 420px;
  width: 100%;
  margin: auto;
  padding: 20px 40px 48px;
  position: relative;
  z-index: 2;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 6px;
}
.auth-title span { color: var(--gold-light); }
.auth-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── AUTH FORM ──────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 13px; }

.field-group { display: flex; flex-direction: column; gap: 5px; }

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}

.field-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.field-input::placeholder { color: rgba(255,255,255,0.28); }
.field-input:focus {
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(245,185,66,0.15);
}

/* password wrapper with show/hide */
.pw-wrap { position: relative; }
.pw-wrap .field-input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.pw-toggle:hover { color: rgba(255,255,255,0.75); }

/* remember me */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
}
.remember-row input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--gold-light);
  cursor: pointer;
}
.remember-row label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  user-select: none;
}

/* submit button */
.auth-submit {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  letter-spacing: 0.3px;
  margin-top: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-submit:hover   { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,185,66,0.40); }
.auth-submit:active  { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* divider */
.auth-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 12px 0;
}

/* switch */
.auth-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.40);
}
.auth-switch a {
  color: var(--gold-light);
  font-weight: 600;
  transition: opacity 0.2s;
}
.auth-switch a:hover { opacity: 0.8; text-decoration: underline; }

/* error / success within auth */
.auth-error {
  background: rgba(220,38,38,0.14);
  border: 1px solid rgba(220,38,38,0.38);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
  line-height: 1.5;
}
.auth-success {
  background: rgba(15,110,86,0.14);
  border: 1px solid rgba(15,110,86,0.38);
  color: #6ee7b7;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
  line-height: 1.5;
}

/* loading button state */
.auth-submit .btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(15,27,45,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.auth-submit.loading .btn-spinner { display: block; }
.auth-submit.loading .btn-text    { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-box   { padding: 16px 22px 36px; }
  .auth-title { font-size: 28px; }
  .auth-header { padding: 22px 22px 0; }
}
