:root {
    --auth-navy: #0f172a;
    --auth-navy-dark: #0c1929;
    --auth-blue: #2563eb;
    --auth-blue-hover: #1d4ed8;
    --auth-blue-soft: #eff6ff;
    --auth-green: #16a34a;
    --auth-green-soft: #ecfdf3;
    --auth-red: #e53935;
    --auth-red-hover: #c62828;
    --auth-red-soft: rgba(229, 57, 53, 0.12);
    --auth-border: #e2e8f0;
    --auth-muted: #64748b;
    --auth-bg: #f4f7fb;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-navy);
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-right: 1px solid var(--auth-border);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--auth-navy);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.auth-logo span {
    color: var(--auth-green);
}

.auth-subtitle {
    margin: 0.5rem 0 2rem;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-card {
    background: #fff;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.35rem;
}

.auth-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-checkbox-row input {
    accent-color: var(--auth-blue);
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #ef5350, var(--auth-red));
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-red), var(--auth-red-hover));
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
}

.auth-footer-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-footer-link a {
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link a:hover {
    color: var(--auth-blue-hover);
    text-decoration: underline;
}

.auth-inline-link {
    margin: -4px 0 2px;
    text-align: right;
    font-size: 0.84rem;
}

.auth-inline-link a {
    color: var(--auth-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-inline-link a:hover {
    color: var(--auth-blue-hover);
    text-decoration: underline;
}

.auth-success {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #166534;
    font-size: 0.875rem;
    line-height: 1.45;
}

.auth-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.25);
    border-radius: 8px;
    color: #b91c1c;
    font-size: 0.875rem;
}

.auth-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Highlights panel */
.auth-promo-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(145deg, var(--auth-navy-dark) 0%, #132238 45%, #0f2847 100%);
    color: #fff;
    overflow: hidden;
}

.auth-promo-panel::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.auth-promo-panel::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.auth-promo-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-promo-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.auth-promo-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.auth-promo-title em {
    font-style: normal;
    color: var(--auth-green);
}

.auth-promo-lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.auth-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.auth-highlight-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.auth-highlight-btn:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.12);
}

.auth-highlight-btn.active {
    border-color: var(--auth-blue);
    background: rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.auth-highlight-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, var(--auth-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-highlight-btn:nth-child(3n+1) .auth-highlight-icon {
    background: linear-gradient(135deg, #22c55e, var(--auth-green));
}

.auth-highlight-btn:nth-child(3n+2) .auth-highlight-icon {
    background: linear-gradient(135deg, #3b82f6, var(--auth-blue));
}

.auth-highlight-btn:nth-child(3n) .auth-highlight-icon {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.auth-highlight-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.auth-highlight-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.auth-highlight-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.auth-highlight-detail {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 88px;
}

.auth-highlight-detail h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    color: #fff;
}

.auth-highlight-detail p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.auth-promo-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.auth-promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.auth-promo-dot.active {
    background: var(--auth-blue);
    transform: scale(1.15);
}

.auth-promo-compact .auth-highlights {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        border-right: none;
        border-bottom: 1px solid var(--auth-border);
    }

    .auth-promo-panel {
        order: -1;
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .auth-promo-inner {
        max-width: none;
    }

    .auth-highlights {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .auth-highlight-detail {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .auth-highlights {
        grid-template-columns: 1fr;
    }

    .auth-form-panel {
        padding: 1.5rem 1.25rem;
    }
}
