/* Login & logout pages */
.auth-page {
    padding: 48px 0 88px;
    background: radial-gradient(900px 420px at 100% 0%, var(--primary-soft), transparent 65%), var(--tint);
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

/* Visual panel */
.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 560px;
    color: #fff;
    background: var(--navy);
}

.auth-visual picture,
.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-visual img {
    object-fit: cover;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 75, 0.15) 0%, rgba(11, 31, 75, 0.65) 45%, rgba(11, 31, 75, 0.96) 100%);
}

.auth-visual-body {
    position: relative;
    z-index: 1;
    padding: 40px;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-visual h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-benefits li {
    position: relative;
    padding-left: 30px;
}

.auth-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

/* Form panel */
.auth-panel {
    display: flex;
    align-items: center;
    padding: 48px 52px;
}

.auth-form {
    width: 100%;
}

.auth-form h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-lead {
    margin: 8px 0 26px;
    color: var(--muted);
}

.auth-form .alert {
    margin-bottom: 20px;
}

.auth-form .field-label-row label {
    font-size: 14px;
    font-weight: 700;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    background: #dbe7fc;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.caps-warning {
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
}

.auth-form .btn-block {
    margin-top: 8px;
}

.auth-help {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    text-align: center;
    color: var(--muted);
}

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

/* Logout message card */
.auth-message {
    max-width: 520px;
    margin: 24px auto;
    padding: 48px 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-message-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
}

.auth-message-icon svg {
    width: 28px;
    height: 28px;
}

.auth-message-ok {
    background: #e7f6ee;
    color: #157347;
}

.auth-message h1 {
    font-size: 28px;
    font-weight: 800;
}

.auth-message p {
    margin-top: 12px;
    color: var(--muted);
}

.auth-message-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-visual-body {
        padding: 28px;
    }

    .auth-benefits {
        display: none;
    }

    .auth-visual h2 {
        font-size: 22px;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 20px 0 56px;
    }

    .auth-panel {
        padding: 32px 22px;
    }

    .auth-form h1 {
        font-size: 26px;
    }

    .auth-message {
        padding: 36px 22px;
    }

    .auth-message-actions .btn {
        width: 100%;
    }
}
