/* ============================================================================
   LexPro — Authentication Screens
   Split-screen premium layout: gradient brand panel + glass form panel.
   ========================================================================= */

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    overflow-x: hidden;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---- Brand panel ---- */
.auth-brand-panel {
    position: relative;
    background: radial-gradient(120% 120% at 15% 0%, #17348F 0%, #0B1F63 45%, #071238 100%);
    color: #fff;
    padding: 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-brand-glow {
    position: absolute;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(14,165,233,.35) 0%, rgba(14,165,233,0) 70%);
    top: -220px; right: -220px;
    border-radius: 50%;
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite;
}
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.auth-brand-content { position: relative; z-index: 1; max-width: 480px; margin-top: 2rem; }

.auth-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 3.5rem; }
.auth-logo-mark {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
}
.auth-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

.auth-brand-headline {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: #fff;
}
.auth-brand-sub { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.65; margin-bottom: 2.5rem; }

.auth-feature-list { display: flex; flex-direction: column; gap: 1rem; }
.auth-feature-item {
    display: flex; align-items: center; gap: .75rem;
    font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9);
}
.auth-feature-item i {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
    color: #7DD3FC;
}

.auth-brand-footer { position: relative; z-index: 1; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---- Form panel ---- */
.auth-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--color-bg);
}

.theme-toggle-fab {
    position: absolute; top: 1.75rem; right: 1.75rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}
.theme-toggle-fab:hover { color: var(--color-primary); border-color: var(--color-primary); transform: rotate(15deg); }

.auth-form-wrap { width: 100%; max-width: 400px; }

.auth-form-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: .5rem; }
.auth-form-sub { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: 2rem; }

.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--color-text-subtle); font-size: var(--fs-xs); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }

.auth-footer-link { text-align: center; margin-top: 1.75rem; font-size: var(--fs-sm); color: var(--color-text-muted); }

.demo-credentials {
    margin-top: 1.5rem;
    padding: .9rem 1rem;
    border: 1.5px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
}
.demo-credentials-label {
    font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--color-text-muted); margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem;
}
.demo-credentials-row {
    display: flex; align-items: center; gap: .6rem;
    font-size: var(--fs-sm); padding: .3rem 0;
}
.demo-credentials-row span { color: var(--color-text-muted); width: 62px; flex-shrink: 0; }
.demo-credentials-row code {
    flex: 1; color: var(--color-text); font-family: monospace; font-size: .85rem;
    background: var(--color-surface); padding: .25rem .5rem; border-radius: var(--radius-sm);
    border: 1px solid var(--color-border); overflow-x: auto; white-space: nowrap;
}
.demo-copy-btn {
    background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    width: 30px; height: 30px; flex-shrink: 0; cursor: pointer;
    color: var(--color-text-muted); display: flex; align-items: center; justify-content: center;
    transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.demo-copy-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }

.remember-row { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0 1.5rem; font-size: var(--fs-sm); }
.remember-check { display: flex; align-items: center; gap: .5rem; color: var(--color-text-muted); cursor: pointer; }
.remember-check input { width: 17px; height: 17px; accent-color: var(--color-primary); cursor: pointer; }

.auth-alert {
    display: flex; align-items: flex-start; gap: .65rem;
    padding: .85rem 1rem; border-radius: var(--radius-md);
    font-size: var(--fs-sm); margin-bottom: 1.25rem;
}
.auth-alert-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.auth-alert-success { background: var(--color-success-bg); color: var(--color-success); }

.password-strength { display: flex; gap: 4px; margin-top: .5rem; }
.password-strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--color-border); transition: background var(--dur-fast) var(--ease-out); }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
}
