/* ==================================================================
   auth-shared.css
   Shared split-screen shell for every authentication page (dark
   brand panel on the left, white form card on the right). Kept
   self-contained from layout.css/sidebar.css on purpose — auth
   pages render before a session exists and shouldn't depend on the
   logged-in app theme.
   ================================================================== */

:root {
    --auth-primary: #2f5fef;
    --auth-primary-dark: #1e3fc4;
    --auth-dark: #0f1729;
    --auth-dark-2: #1b2b52;
    --auth-border: #e5e9f2;
    --auth-text: #1e2433;
    --auth-text-muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--auth-text);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------------- Left brand panel ---------------- */

.auth-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--auth-dark), var(--auth-dark-2));
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 95, 239, 0.45), transparent 70%);
    filter: blur(10px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.auth-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--auth-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.auth-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.auth-brand .brand-name {
    font-weight: 700;
    font-size: 15px;
}

.auth-brand .brand-sub {
    font-size: 11px;
    color: #9aa4bf;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.auth-heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
}

.auth-subtext {
    color: #b8c1d9;
    max-width: 380px;
    margin: 0 0 32px;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #dbe2f5;
}

.auth-feature-list i {
    width: 18px;
    color: #7c96ff;
}

/* ---------------- Right form panel ---------------- */

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 24px;
}

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

.auth-form-card h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
}

.auth-form-subtext {
    color: var(--auth-text-muted);
    font-size: 13.5px;
    margin: 0 0 28px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-text-muted);
    margin: 16px 0 6px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon > i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 14px;
}

.input-with-icon .form-control {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fc;
}

.input-with-icon .form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 95, 239, 0.12);
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 6px;
}

.btn-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-top: 24px;
    background: var(--auth-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-signin:hover {
    background: var(--auth-primary-dark);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
    color: var(--auth-text-muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--auth-primary);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
    .auth-panel {
        display: none;
    }
}
