/* =============================================================================
   AUTH PAGES — split screen. Left: gradient hero with brand + feature
   highlights. Right: the login card. Matches the indigo/violet theme in
   assets/css/app.css.
   ============================================================================= */

html, body.auth-body {
    height: 100%;
    margin: 0;
    font-family: var(--font-body);
    background: var(--parchment);
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-panel {
    background: radial-gradient(circle at 20% 10%, #4F3FE0 0%, #2E1F6E 45%, #1A1340 100%);
    color: #E9E8F7;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    /* subtle ambient glow, kept quiet on purpose */
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
    border-radius: 50%;
}

.auth-panel .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.auth-panel .brand .mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.auth-panel .brand .name small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(233,232,247,0.65);
}

.auth-hero {
    margin: auto 0;
    position: relative;
    z-index: 1;
}
.auth-hero h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.auth-hero p {
    font-size: 1rem;
    color: rgba(233,232,247,0.78);
    max-width: 360px;
    line-height: 1.5;
}

.auth-panel .tagline-block {
    position: relative;
    z-index: 1;
}
.auth-panel .tagline-block .tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.auth-panel .tagline-block .sub {
    font-size: 0.85rem;
    color: rgba(233,232,247,0.7);
    margin-bottom: 20px;
    max-width: 380px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.feature-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
}
.feature-chip .icon-wrap {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    color: #fff;
}
.feature-chip span {
    font-size: 0.7rem;
    color: rgba(233,232,247,0.85);
    line-height: 1.3;
    display: block;
}

.auth-panel .foot-note {
    font-size: 0.74rem;
    color: rgba(233,232,247,0.5);
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card .lock-badge {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    box-shadow: var(--shadow-sm);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    text-align: center;
}

.auth-card .sub {
    color: var(--slate);
    font-size: 0.88rem;
    margin-bottom: 26px;
    text-align: center;
}

.auth-card .field { margin-bottom: 18px; }

.auth-card .field-icon-input {
    position: relative;
}
.auth-card .field-icon-input svg {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--slate-soft);
    pointer-events: none;
}
.auth-card .field-icon-input input { padding-left: 38px; }
.auth-card .field-icon-input .toggle-pw {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-soft);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.auth-card .row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.auth-card .remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--slate);
    font-weight: 400;
}
.auth-card .remember-label input { width: auto; margin: 0; }
.auth-card .row-between a { color: var(--primary); font-weight: 600; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--slate-soft);
    font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-card .help-link {
    display: block;
    text-align: center;
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--slate);
}

.auth-card .help-link a { color: var(--primary); font-weight: 600; }

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