/* ============================================================
   VariaOS — Account layout (Login / ForgotPassword / ResetPassword / ...)
   Split-hero auth shell. Styles the stock ABP Account module markup
   (Bootstrap .card/.form-control/.btn) via --los-* tokens; no markup fork.
   ============================================================ */

body.los-auth-body {
    margin: 0;
    background: var(--los-bg);
}

.los-auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
}

/* ── Hero (left) ── */
.los-auth-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(160deg, #1D4FD7, #0891B2);
}

.los-auth-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: saturate(0.62) brightness(0.82) contrast(1.05);
}

.los-auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(155deg, rgba(37, 99, 235, 0.30) 0%, rgba(12, 22, 47, 0.42) 44%, rgba(12, 22, 47, 0.90) 100%);
}

.los-auth-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    top: -160px;
    left: -120px;
    z-index: 1;
    background: radial-gradient(circle, var(--los-accent2-glow) 0%, transparent 70%);
    pointer-events: none;
}

.los-auth-hero-inner {
    position: relative;
    z-index: 2;
    display: contents;
}

.los-auth-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
}

.los-auth-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--los-radius-sm);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--los-accent), var(--los-accent2));
    box-shadow: var(--los-shadow-glow);
}

.los-auth-brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    /* Hero panel is a colour/photo surface with a dark overlay — pin to light,
       not the (now dark) --los-text token, so the wordmark stays legible. */
    color: #FFFFFF;
}

.los-auth-brand-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2px 7px;
    border-radius: 5px;
}

.los-auth-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 460px;
    margin-bottom: 8px;
}

.los-auth-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* Bright cyan for legibility over the dark hero overlay (not the darker --los-accent2). */
    color: #67E8F9;
    margin-bottom: 16px;
}

.los-auth-hero-copy h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.5rem;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

/* Light heading over the dark hero overlay. Needs the html.lpx-theme-dark prefix
   AND !important to outrank the global `html.lpx-theme-dark h1..h6 { color:
   var(--los-text) !important }` rule (equal !important, higher specificity wins),
   which would otherwise force this to the now-dark body text colour. */
html.lpx-theme-dark .los-auth-hero-copy h2 {
    color: #FFFFFF !important;
}

.los-auth-grad-text {
    /* Bright blue→cyan gradient reads over the dark hero overlay. */
    background: linear-gradient(135deg, #60A5FA 0%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.los-auth-hero-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 420px;
}

/* ── Panel (right) ── */
.los-auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--los-bg);
    overflow-y: auto;
}

.los-auth-panel::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    top: -120px;
    right: -160px;
    background: radial-gradient(circle, var(--los-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.los-auth-card-col {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

/* Stock lpx-brand-logo mark above the form is redundant with the hero brand mark */
.los-auth-stock-logo {
    display: none;
}

/* ── Corner language switch (overlays the top-right of the card, mock has no equivalent) ── */
.los-auth-lang-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.los-auth-lang-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--los-border);
    background: var(--los-surface2);
    color: var(--los-text2);
}

.los-auth-lang-btn:hover,
.los-auth-lang-btn:focus {
    border-color: var(--los-border2);
    background: var(--los-surface3);
    color: var(--los-text);
}

.los-auth-lang-btn::after {
    display: none;
}

.abp-account-layout .los-auth-lang-switch .dropdown-menu {
    background: var(--los-surface);
    border: 1px solid var(--los-border);
    box-shadow: var(--los-shadow-card);
}

.abp-account-layout .los-auth-lang-switch .dropdown-item {
    color: var(--los-text2);
}

.abp-account-layout .los-auth-lang-switch .dropdown-item:hover,
.abp-account-layout .los-auth-lang-switch .dropdown-item:focus {
    background: var(--los-surface2);
    color: var(--los-text);
}

/* ── Status strip: alerts + tenant chip, compact — sits above the card, not a full card of its own ── */
.los-auth-status-strip {
    margin-bottom: 14px;
}

.los-auth-tenant-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--los-radius-md);
    border: 1px solid var(--los-border);
    background: var(--los-surface);
    color: var(--los-text2);
    font-size: 0.82rem;
}

.los-auth-tenant-label {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--los-muted);
}

.los-auth-tenant-chip strong {
    color: var(--los-text);
    margin-right: auto;
}

.los-auth-tenant-switch-link {
    /* Blue accent (5.2:1 on the white chip) — the cyan --los-accent2 was only
       3.68:1 on light, failing AA for this small link text. */
    color: var(--los-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
}

.los-auth-tenant-switch-link:hover {
    color: var(--los-text);
}

/* ── Stock Bootstrap card (Login.cshtml / ForgotPassword.cshtml wrap themselves in .card) ── */
.abp-account-layout .los-auth-card-col .card {
    border-radius: var(--los-radius-lg);
    box-shadow: var(--los-shadow-card);
}

.abp-account-layout .los-auth-card-col .card-body {
    padding: 2.25rem !important;
}

.abp-account-layout .los-auth-card-col .card h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.abp-account-layout .los-auth-card-col .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--los-text2);
    letter-spacing: 0.02em;
}

.abp-account-layout .los-auth-card-col .form-control {
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.abp-account-layout .los-auth-card-col .input-group .btn-secondary {
    border-radius: 0 10px 10px 0;
}

.abp-account-layout .los-auth-card-col .btn-primary,
.abp-account-layout .los-auth-card-col .btn-lg {
    border-radius: 10px;
    font-weight: 600;
}

.abp-account-layout .los-auth-card-col .btn-primary:hover {
    box-shadow: var(--los-shadow-glow);
}

/* "Or login with" heading styled as a divider, matching the SSO row in the mock */
.abp-account-layout .los-auth-card-col h5 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 14px;
    color: var(--los-muted2);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: none;
}

.abp-account-layout .los-auth-card-col h5::before,
.abp-account-layout .los-auth-card-col h5::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--los-border);
}

/* Alerts / language-language-switch card above the login card */
.abp-account-layout .los-auth-card-col > .card:first-of-type {
    margin-bottom: 1rem;
}

@media (max-width: 940px) {
    .los-auth-shell {
        grid-template-columns: 1fr;
    }

    .los-auth-hero {
        min-height: 230px;
        padding: 26px;
    }

    .los-auth-hero-copy h2 {
        font-size: 1.7rem;
    }

    .los-auth-hero-copy p {
        display: none;
    }
}
