/* ═══════════════════════════════════════════════════════════
   Nyota Njema — Auth Pages
   File: public/css/auth.css
   ═══════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────── */
html, body { height: 100%; margin: 0; }

body.auth-page {
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 400px;          /* compact — was 1000px */
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08), 0 1px 4px rgba(0,0,0,.04);
  overflow: hidden;
  padding: 2rem 2rem 1.75rem;
}

/* ── Form side (now full card) ───────────────────────────── */
.auth-form-side {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.auth-form-inner {
  width: 100%;
}

/* ── Brand ───────────────────────────────────────────────── */
.auth-brand { text-align: center; margin-bottom: 1.5rem; }

.auth-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

.auth-brand-logo svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.auth-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -.4px;
  line-height: 1.1;
  margin: 0;
}

.auth-brand-name span { color: #0d6efd; }

.auth-brand-tagline {
  font-size: .75rem;
  color: #8492a6;
  margin-top: .2rem;
  letter-spacing: .2px;
  text-transform: uppercase;
}

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: #c4cdd6;
  font-size: .75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9edf2;
}

/* ── Form elements ───────────────────────────────────────── */
.auth-form-inner .form-label {
  font-size: .8rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: .35rem;
}

.auth-form-inner .form-control,
.auth-form-inner .input-group-text {
  font-size: .875rem;
  border-color: #dde3ec;
  border-radius: .5rem;
  padding: .5rem .75rem;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s;
}

.auth-form-inner .form-control:focus {
  border-color: #0d6efd;
  background: #f8fbff;
}

.auth-form-inner .input-group .form-control {
  border-radius: .5rem 0 0 .5rem;
}

.auth-form-inner .input-group .input-group-text {
  border-radius: 0 .5rem .5rem 0;
  background: #f8fafc;
  cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────── */
.auth-form-inner .btn-primary {
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: .5rem;
  letter-spacing: .2px;
}

/* ── Links ───────────────────────────────────────────────── */
.auth-link {
  font-size: .8rem;
  color: #0d6efd;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

/* ── Footer text ─────────────────────────────────────────── */
.auth-footer-text {
  font-size: .78rem;
  color: #8492a6;
  text-align: center;
  margin-top: 1.25rem;
}

/* ── Error text ──────────────────────────────────────────── */
.auth-form-inner .text-danger {
  font-size: .75rem;
  margin-top: .2rem;
}

/* ── Dark mode ───────────────────────────────────────────── */
html[data-bs-theme="dark"] body.auth-page {
  background: #0d1117;
}

html[data-bs-theme="dark"] .auth-card {
  background: #161b22;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

html[data-bs-theme="dark"] .auth-brand-name {
  color: #e6edf3;
}

html[data-bs-theme="dark"] .auth-form-inner .form-label {
  color: #8b949e;
}

html[data-bs-theme="dark"] .auth-form-inner .form-control,
html[data-bs-theme="dark"] .auth-form-inner .input-group-text {
  background-color: #0d1117 !important;
  border-color: #30363d !important;
  color: #e6edf3 !important;
}

html[data-bs-theme="dark"] .auth-form-inner .form-control:focus {
  border-color: #0d6efd !important;
  background: #0d1117 !important;
}

html[data-bs-theme="dark"] .auth-form-inner .form-control::placeholder {
  color: #484f58;
}

html[data-bs-theme="dark"] .auth-divider {
  color: #30363d;
}
html[data-bs-theme="dark"] .auth-divider::before,
html[data-bs-theme="dark"] .auth-divider::after {
  background: #30363d;
}

html[data-bs-theme="dark"] .auth-footer-text {
  color: #484f58;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 440px) {
  .auth-card    { padding: 1.5rem 1.25rem 1.25rem; border-radius: .75rem; }
}