.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #172033;
    background:
        radial-gradient(circle at 15% 15%, rgba(26, 179, 148, 0.15), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(37, 99, 235, 0.12), transparent 38%),
        #f3f3f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 42px 44px 32px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(30, 41, 59, 0.14);
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-brand {
    margin: 0 auto 28px;
    text-align: center;
}

.auth-brand-logo {
    display: block;
    width: min(300px, 78vw);
    height: auto;
    margin: 0 auto;
}

.auth-header h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.auth-form {
    margin: 0;
}

.auth-alert {
    margin: 0 0 20px;
    padding: 11px 13px;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 9px;
    font-size: 14px;
    text-align: left;
}

.auth-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.auth-alert-success .fa {
    margin-top: 2px;
    color: #16a34a;
}

.auth-alert:empty,
.auth-alert.validation-summary-valid {
    display: none;
}

.auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.auth-control {
    position: relative;
}

.auth-control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input.form-control {
    height: 46px;
    padding: 10px 42px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    box-shadow: none;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input.form-control:focus {
    border-color: #1ab394;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.13);
}

.auth-control-password .auth-input {
    padding-right: 46px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: #1ab394;
    background: #ecfdf5;
    outline: none;
}

.auth-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.2);
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
}

.auth-caps-lock {
    margin: 7px 0 0;
    color: #92400e;
    font-size: 13px;
}

.auth-caps-lock[hidden] {
    display: none;
}

.auth-caps-lock i {
    margin-right: 4px;
}

.auth-options {
    display: flex;
    margin: 2px 0 24px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.auth-remember {
    display: inline-flex;
    margin: 0;
    align-items: center;
    color: #475569;
    cursor: pointer;
    font-weight: 400;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: #1ab394;
}

.auth-forgot {
    color: #1ab394;
    font-weight: 600;
}

.auth-forgot:hover,
.auth-forgot:focus {
    color: #15967c;
    text-decoration: underline;
}

.auth-submit.btn {
    width: 100%;
    height: 46px;
    color: #fff;
    background: #1ab394;
    border: 1px solid #1ab394;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(26, 179, 148, 0.2);
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.auth-submit.btn:hover,
.auth-submit.btn:focus {
    color: #fff;
    background: #15967c;
    border-color: #15967c;
}

.auth-submit.btn:active {
    transform: translateY(1px);
}

.auth-submit.btn.is-loading,
.auth-submit.btn.is-loading:hover,
.auth-submit.btn.is-loading:focus {
    color: #fff;
    background: #15967c;
    border-color: #15967c;
    cursor: wait;
    opacity: 0.88;
    pointer-events: none;
    transform: none;
}

.auth-submit-spinner {
    margin-right: 8px;
}

.auth-footer {
    margin-top: 26px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.auth-footer i {
    margin-right: 5px;
}

.auth-back-link {
    margin-top: 22px;
    text-align: center;
}

.auth-back-link a {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.auth-back-link a:hover,
.auth-back-link a:focus {
    color: #1ab394;
    text-decoration: none;
}

.auth-back-link i {
    margin-right: 6px;
}

.auth-message-card {
    padding-top: 48px;
    text-align: center;
}

.auth-message-card h1 {
    margin: 22px 0 10px;
    color: #172033;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-message-card p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.auth-message-card .auth-supporting-text {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.auth-status-icon {
    display: flex;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    color: #1ab394;
    background: #ccfbf1;
    border-radius: 50%;
    font-size: 27px;
}

.auth-status-success {
    color: #15803d;
    background: #dcfce7;
}

.auth-status-warning {
    color: #b45309;
    background: #fef3c7;
}

.auth-button-link.btn {
    display: flex;
    margin-top: 26px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-password-guidance {
    margin: -6px 0 22px;
    padding: 10px 12px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .auth-shell {
        align-items: flex-start;
        padding: 30px 14px;
    }

    .auth-card {
        padding: 34px 24px 26px;
        border-radius: 14px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input.form-control,
    .auth-submit.btn {
        transition: none;
    }
}
