/* ═══════════════════════════════════════════════════════
   Al-Qibla Orphanage Home — Auth Pages Stylesheet
   dash_settings/css/auth.css
   Covers: ma_login, m_login, login_stf, au_login,
           cpasswordf_reset, cpassword, cpassword_ext,
           cpasswrd_code, ma_login2
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
  --aq-green:       #1a3a5c;
  --aq-green-mid:   #2563a8;
  --aq-green-light: #e8eef7;
  --aq-gold:        #c8960c;
  --aq-blue:        #1a3a5c;
  --aq-text:        #2d3a3a;
  --aq-muted:       #607d7b;
  --aq-border:      #dce8e6;
  --aq-input-bg:    #f7fbfa;
  --aq-shadow:      0 8px 40px rgba(26,58,92,.15);
  --aq-radius:      16px;
}


/* ── Auth Page Navbar Override ──────────────────────── */
/* Force a professional dark navy navbar on all auth pages */
body.auth-page .kustom_bar {
  background: #0a1929 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.25) !important;
}
body.auth-page .kustom_bar nav.navbar {
  background: transparent !important;
}
body.auth-page .kustom_bar .navbar-brand,
body.auth-page .kustom_bar a.navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .3px;
}
body.auth-page .kustom_bar .nav-link,
body.auth-page .kustom_bar .navbar-toggler-icon {
  color: rgba(255,255,255,.85) !important;
}
body.auth-page .kustom_bar .nav-link:hover { color: #ffffff !important; }
body.auth-page .kustom_bar .dropdown-menu {
  background: #132030;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
body.auth-page .kustom_bar .dropdown-item {
  color: rgba(255,255,255,.82);
  font-size: .85rem;
}
body.auth-page .kustom_bar .dropdown-item:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}
/* Logo in auth navbar */
body.auth-page .kustom_bar img {
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  padding: 2px;
}


/* ── Auth Navbar Override (NNPC dark navy) ──────────── */
body.auth-page .kustom_bar {
  background: #0a1929 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.28) !important;
}
body.auth-page .kustom_bar nav.navbar { background: transparent !important; }
body.auth-page .kustom_bar .navbar-brand,
body.auth-page .kustom_bar a.navbar-brand { color:#fff !important; font-weight:700; }
body.auth-page .kustom_bar .nav-link { color:rgba(255,255,255,.85) !important; }
body.auth-page .kustom_bar .nav-link:hover { color:#fff !important; }
body.auth-page .kustom_bar .dropdown-menu { background:#132030; border:1px solid rgba(255,255,255,.12); border-radius:8px; }
body.auth-page .kustom_bar .dropdown-item { color:rgba(255,255,255,.82); font-size:.85rem; }
body.auth-page .kustom_bar .dropdown-item:hover { background:rgba(255,255,255,.10); color:#fff; }
body.auth-page .kustom_bar img { border-radius:4px; background:rgba(255,255,255,.1); padding:2px; }

/* ── Page Background ────────────────────────────────── */
body.auth-page,
html body.auth-page {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #e8eef7 0%, #f0f4fc 40%, #eaf0ff 100%);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Decorative background pattern ─────────────────── */
body.auth-page::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(26,58,92,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,150,12,.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Auth Wrapper ───────────────────────────────────── */
.auth-wrapper {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 30px 16px 40px;
}

/* ── Auth Card ──────────────────────────────────────── */
.auth-card {
  background: #fff;
  border-radius: var(--aq-radius);
  box-shadow: var(--aq-shadow);
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  animation: authFadeIn .4s ease;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card Header Band ───────────────────────────────── */
.auth-card-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2563a8 100%);
  padding: 28px 32px 24px;
  text-align: center;
  color: #fff;
  position: relative;
}
.auth-card-header.gold-header {
  background: linear-gradient(135deg, #b07d06 0%, var(--aq-gold) 100%);
}
.auth-card-header.blue-header {
  background: linear-gradient(135deg, var(--aq-blue) 0%, #2563a8 100%);
}

.auth-header-logo {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: contain;
  background: rgba(255,255,255,.15);
  padding: 6px;
  margin-bottom: 12px;
}
.auth-header-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
  opacity: .9;
}
.auth-card-header h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.auth-card-header p {
  margin: 0;
  font-size: .82rem;
  opacity: .82;
}

/* ── Card Body ──────────────────────────────────────── */
.auth-card-body {
  padding: 28px 32px 24px;
}

/* ── Status Alert ───────────────────────────────────── */
.auth-alert {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .83rem;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.auth-alert.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.auth-alert.error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ── Form Group ─────────────────────────────────────── */
.auth-form-group {
  margin-bottom: 18px;
}
.auth-form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--aq-text);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

/* ── Input with Icon ─────────────────────────────────── */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 12px;
  color: var(--aq-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}
.auth-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--aq-border);
  border-radius: 9px;
  background: var(--aq-input-bg);
  font-size: .88rem;
  color: var(--aq-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.auth-input-wrap input:focus {
  border-color: var(--aq-green);
  box-shadow: 0 0 0 3px rgba(26,58,92,.10);
  background: #fff;
}
.auth-input-wrap input::placeholder { color: #aabab8; }

/* ── Toggle password visibility ─────────────────────── */
.auth-input-wrap .auth-pw-toggle {
  position: absolute; right: 12px;
  color: var(--aq-muted); cursor: pointer;
  font-size: .95rem; user-select: none;
}

/* ── Submit Button ──────────────────────────────────── */
.auth-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2563a8 100%);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s, transform .15s;
  margin-top: 4px;
}
.auth-btn:hover   { opacity: .92; transform: translateY(-1px); }
.auth-btn:active  { transform: translateY(0); opacity: 1; }
.auth-btn.gold-btn {
  background: linear-gradient(135deg, #b07d06 0%, var(--aq-gold) 100%);
}
.auth-btn.blue-btn {
  background: linear-gradient(135deg, var(--aq-blue) 0%, #2563a8 100%);
}

/* ── Divider ─────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 16px;
  color: var(--aq-muted); font-size: .75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--aq-border);
}

/* ── Footer Links ────────────────────────────────────── */
.auth-footer {
  text-align: center;
  font-size: .8rem;
  color: var(--aq-muted);
  margin-top: 4px;
}
.auth-footer a {
  color: var(--aq-green);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Card Footer Strip ────────────────────────────────── */
.auth-card-footer {
  background: var(--aq-green-light);
  padding: 12px 32px;
  text-align: center;
  font-size: .74rem;
  color: var(--aq-muted);
  border-top: 1px solid var(--aq-border);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card-body, .auth-card-header { padding-left: 20px; padding-right: 20px; }
  .auth-card { border-radius: 12px; }
}
