/* ──────────────────────────────────────────────────────────────
   Auth pages (login / forgot-password) — split brand/form layout.
   Layered ON TOP of Tabler: keeps Tabler form-control/btn/alert at
   the core, adds the two-panel composition + elegant serif accents.
   Scoped under .auth-split so nothing leaks into the rest of the app.
   ────────────────────────────────────────────────────────────── */

/* Palette + font — overrides Tabler defaults for auth pages only */
:root {
    --tblr-font-sans-serif:  'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
    --tblr-body-font-family: var(--tblr-font-sans-serif);
    --tblr-primary:          #2E4BC9;
    --tblr-primary-rgb:      46, 75, 201;
    --tblr-primary-lt:       #E9EDFB;
    --tblr-primary-darken:   #2540AF;
    --tblr-primary-fg:       #ffffff;
    --tblr-link-color:       #2E4BC9;
    --tblr-link-hover-color: #2540AF;
}
body { font-feature-settings: "cv03", "cv04", "cv11"; }

.auth-split {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 0;
}

/* ── Brand panel (left) ─────────────────────────────────────── */
.auth-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #1B2F8F;
    background: linear-gradient(160deg, #2A41AE 0%, #1B2F8F 55%, #142270 100%);
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}
.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 80%, rgba(255, 255, 255, .07), transparent 60%);
    pointer-events: none;
}

.auth-brand-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-brand-mark i { font-size: 1.625rem; line-height: 1; color: #fff; }
.auth-brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

.auth-brand-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-brand-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 2.125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 16em;
    color: #fff;
}
.auth-brand-sub {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    font-weight: 600;
}

/* Decorative tile field */
.auth-tiles {
    position: absolute;
    top: 13%;
    right: -40px;
    width: 64%;
    max-width: 440px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    transform: rotate(-6deg);
    pointer-events: none;
    z-index: 1;
}
.auth-tiles i {
    aspect-ratio: 1;
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .05);
}
.auth-tiles i.on    { background: rgba(125, 156, 255, .32); border-color: rgba(147, 178, 255, .48); }
.auth-tiles i.pulse { background: rgba(255, 255, 255, .20); border-color: rgba(255, 255, 255, .30); animation: authTilePulse 3.6s ease-in-out infinite; }
@keyframes authTilePulse {
    0%, 100% { background: rgba(255, 255, 255, .12); }
    50%      { background: rgba(255, 255, 255, .28); }
}

/* ── Form panel (right) ─────────────────────────────────────── */
.auth-form-side {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--tblr-body-bg);
}
.auth-form-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--tblr-secondary);
}
.auth-form-head .ti { font-size: 0.9375rem; }

.auth-form-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}
.auth-card-tight { width: 100%; max-width: 420px; }
.auth-card-tight h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 10px;
    color: var(--tblr-body-color);
}
.auth-card-tight h1 em {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
}
.auth-card-tight .auth-sub {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--tblr-secondary);
    margin: 0 0 26px;
}

/* Tabler form controls, refined for this layout */
.auth-card-tight .form-label { font-size: 0.78rem; font-weight: 600; }
.auth-card-tight .form-control,
.auth-card-tight .input-group {
    border-radius: 9px;
}
.auth-card-tight .form-control { height: 44px; }
.auth-card-tight .input-group .form-control { height: 42px; }
.auth-card-tight .form-control:focus,
.auth-card-tight .input-group-flat:focus-within {
    border-color: #2E4BC9;
    box-shadow: 0 0 0 3px rgba(46, 75, 201, .18);
}
.auth-btn-lg {
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ── Language switcher ──────────────────────────────────────── */
.auth-lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary);
}
.auth-lang-switcher a {
    color: var(--tblr-secondary);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.auth-lang-switcher a:hover,
.auth-lang-switcher a:focus-visible {
    color: var(--tblr-body-color);
    background: var(--tblr-border-color);
}
.auth-lang-switcher a.active {
    color: var(--tblr-primary);
    background: rgba(46, 75, 201, .08);
}
.auth-lang-switcher span { opacity: .4; }

/* ── Responsive: single column, hide brand panel ────────────── */
@media (max-width: 992px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-tiles i.pulse {
        animation: none;
        background: rgba(255, 255, 255, .20);
    }
}
