/* =============================================================
   SecureLend Risk Intelligence — Auth (cover/hero) styling
   ============================================================= */

html, body { height: 100%; }

body.auth-body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body-text);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(201, 168, 76, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(14, 124, 123, 0.30), transparent 55%),
    linear-gradient(135deg, #0D2B55 0%, #143C72 45%, #0E7C7B 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-shell {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 580px;
}

.auth-side {
  background:
    radial-gradient(ellipse at top right, rgba(201, 168, 76, 0.22), transparent 60%),
    linear-gradient(160deg, #0D2B55 0%, #0A2044 60%, #0E7C7B 130%);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,0.04) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.04) 95%);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.auth-brand .logo-mark {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8932E 100%);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.auth-brand .brand-text { line-height: 1.15; }
.auth-brand .brand-text .name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
}
.auth-brand .brand-text .tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-hero {
  position: relative;
  z-index: 1;
  margin-top: 36px;
}
.auth-hero h1 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.auth-hero .accent-bar {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 20px;
}
.auth-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 420px;
}

.auth-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.auth-features li .bi {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.18);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.auth-side-footer {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 28px;
}

.auth-form-side {
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.auth-form-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.auth-form-card .auth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--teal);
  margin-bottom: 8px;
}
.auth-form-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.auth-form-card .auth-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 26px;
}

.auth-form-card .form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.auth-form-card .form-control {
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 44px;
  font-size: 14px;
  background: var(--offwhite);
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.auth-form-card .form-control:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: var(--shadow-focus-teal);
  outline: 0;
}

.auth-form-card .btn-primary {
  width: 100%;
  height: 46px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--navy);
  border: 0;
  color: #fff;
  letter-spacing: 0.02em;
  transition: background var(--t-base);
}
.auth-form-card .btn-primary:hover { background: var(--navy-hover); }

.auth-form-card .btn-link,
.auth-form-card a.text-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.auth-form-card .btn-link:hover,
.auth-form-card a.text-link:hover { color: var(--teal-hover); text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--slate);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-meta {
  text-align: center;
  font-size: 12px;
  color: var(--slate);
  margin-top: 22px;
}
.auth-meta a { color: var(--teal); font-weight: 600; }

.auth-flash {
  margin-bottom: 18px;
}
.auth-flash .alert {
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 14px;
  border-left-width: 4px;
}

.auth-form-card .form-check {
  font-size: 13px;
  color: var(--slate);
}
.auth-form-card .form-check-input:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-side { padding: 32px 28px; }
  .auth-form-side { padding: 36px 28px; }
  .auth-hero h1 { font-size: 24px; }
}
