/* ============================================================
   auth.css: Auth / Login layout
   ============================================================ */

/* ── Auth / Login Layout ────────────────────────────────────── */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-hero {
    background: var(--navy-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.auth-hero__logo    { margin-bottom: 3rem; position: relative; z-index: 1; }

.auth-hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    color: #e8f0fe;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.auth-hero__tagline em { font-style: italic; color: var(--teal-light); }

.auth-hero__sub {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 300;
    line-height: 1.75;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.auth-hero__dec {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.auth-panel {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    position: relative;
    transition: background var(--ease);
}

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

.auth-panel__controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.auth-panel__heading {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--text-1);
    letter-spacing: -0.3px;
    margin-bottom: 0.35rem;
}

.auth-panel__sub {
    color: var(--text-2);
    font-size: 0.88rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* Auth panel theme toggle (standalone icon button) */
.auth-theme-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1.5px solid var(--border-mid);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ease);
}

.auth-theme-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.auth-theme-btn svg { width: 16px; height: 16px; }
.auth-theme-btn .theme-icon-sun  { display: block; }
.auth-theme-btn .theme-icon-moon { display: none; }
[data-theme="dark"] .auth-theme-btn .theme-icon-sun  { display: none; }
[data-theme="dark"] .auth-theme-btn .theme-icon-moon { display: block; }

/* ── Access-code form ───────────────────────────────────────── */
.access-code-form { margin-top: 1.5rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-hero   { padding: 2.5rem 2rem 2rem; min-height: 0; }
    .auth-hero__dec { display: none; }
    .auth-panel  { padding: 3rem 1.5rem; }
}
