.auth-page {
        --validation-error-color: #B91C1C;
    --validation-error-bg: #FEF2F2;
    --validation-error-border: #FECACA;
    --validation-warning-color: #B45309;
    --validation-warning-bg: #FFFBEB;
    --validation-warning-border: #FDE68A;
    --validation-success-color: #047857;
    --validation-success-bg: #ECFDF5;
    --validation-success-border: #A7F3D0;
    color-scheme: light;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    background: var(--bp-cream, #FEF6E8);
    color: var(--bp-ink, #111827);
    font-family: var(--font, Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    background: var(--bp-primary-dark, #002D3B);
}

.auth-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 45, 59, 0.94) 0%, rgba(0, 45, 59, 0.6) 20%, rgba(0, 45, 59, 0) 46%);
}

.auth-visual-copy {
    position: absolute;
    left: 48px;
    right: 48px;
    bottom: 44px;
    z-index: 1;
    max-width: 440px;
    color: var(--bp-cream, #FEF6E8);
}

.auth-visual-logo {
    display: block;
    width: 34px;
    height: 42px;
    margin-bottom: 16px;
}

.auth-visual-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.auth-visual-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(254, 246, 232, 0.82);
}

.auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--bp-border, #E5E7EB);
    border-radius: 16px;
    box-shadow: 0 18px 40px -24px rgba(0, 45, 59, 0.35);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-brand-logo {
    width: 44px;
    height: auto;
}

.auth-brand-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bp-primary, #003E52);
}

.auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bp-ink, #111827);
}

.auth-subtitle {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bp-muted, #6B7280);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-field .field-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #374151;
}

.auth-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--bp-primary, #003E52);
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-field .input-field {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--bp-ink, #111827);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field .input-field::placeholder {
    color: #9CA3AF;
}

.auth-field .input-field:focus {
    border-color: var(--bp-primary, #003E52);
    box-shadow: 0 0 0 3px rgba(0, 62, 82, 0.15);
}

.auth-field .input-field.valid.modified {
    outline: none;
}

.auth-field .input-field.invalid,
.auth-field .input-field.validation-error {
    outline: none;
    border-color: #F87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.auth-password {
    position: relative;
}

.auth-password .input-field {
    padding-right: 46px;
}

.auth-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
}

.auth-eye:hover,
.auth-eye:focus-visible {
    color: var(--bp-primary, #003E52);
    outline: none;
}

.auth-eye svg {
    width: 20px;
    height: 20px;
}

.auth-eye .eye-off,
.auth-eye.is-on .eye-on {
    display: none;
}

.auth-eye.is-on .eye-off {
    display: block;
}

.auth-field .validation-message {
    position: static;
    width: auto;
    margin: 0;
    padding: 8px 10px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bp-primary, #003E52);
    cursor: pointer;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: var(--bp-primary, #003E52);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.auth-submit:hover {
    background: var(--bp-primary-dark, #002D3B);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(0, 62, 82, 0.3);
    outline-offset: 2px;
}

.auth-submit[disabled],
.auth-submit.is-loading {
    background: var(--bp-primary-dark, #002D3B);
    opacity: 0.92;
    cursor: progress;
    transform: none;
}

.auth-submit .auth-submit-busy,
.auth-submit.is-loading .auth-submit-label {
    display: none;
}

.auth-submit.is-loading .auth-submit-busy {
    display: inline;
}

.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

.auth-submit.is-loading .auth-spinner {
    display: inline-block;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-card .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    box-shadow: none;
}

.auth-card .alert::before {
    content: "!";
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: currentColor;
}

.auth-card .alert-danger {
    color: #991B1B;
    background: #FEF2F2;
    border-color: #FECACA;
}

.auth-card .alert-warning {
    color: #92400E;
    background: #FFFBEB;
    border-color: #FDE68A;
}

.auth-card .alert-success,
.auth-card .alert-info {
    color: #065F46;
    background: #ECFDF5;
    border-color: #A7F3D0;
}

.auth-card .alert.critical {
    animation: auth-pulse 0.5s ease-in-out;
}

@keyframes auth-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.auth-footnote {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--bp-muted, #6B7280);
}

.auth-footer {
    margin-top: 28px;
    font-size: 12px;
    color: var(--bp-muted, #6B7280);
}

@media (max-width: 960px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-main {
        justify-content: flex-start;
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-spinner {
        animation-duration: 1.6s;
    }

    .auth-card .alert.critical {
        animation: none;
    }
}
