.auth-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: calc(100vh - 48px);
    padding: 24px;
    color: #071428;
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-card {
    width: min(100%, 520px);
    padding: 32px;
    border: 1px solid rgba(228, 233, 242, 0.96);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 27, 45, 0.15);
}

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

.auth-brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, #f4d27a, #c99a38);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(201, 154, 56, 0.22);
}

.auth-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand-subtitle {
    margin-top: 3px;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.auth-subtitle,
.auth-intro {
    margin: 0;
    color: #667085;
    font-weight: 400;
    line-height: 1.55;
}

.auth-intro {
    margin-top: 8px;
}

.password-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.password-field {
    min-width: 0;
}

.password-field .form-label {
    display: block;
    margin: 0 0 8px;
    color: #253247;
    font-size: 0.9rem;
    font-weight: 500;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap .form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 48px 12px 14px;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    color: #071428;
    background: #fbfcff;
    font-size: 0.95rem;
    font-weight: 400;
}

.password-input-wrap .form-control:focus {
    border-color: #c99a38;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(201, 154, 56, 0.15);
}

.password-input-wrap .form-control.is-invalid {
    border-color: #d92d20;
    background-image: none;
}

.password-input-wrap .password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #667085;
    background: transparent;
    transform: translateY(-50%);
}

.password-input-wrap .password-toggle:hover {
    color: #253247;
    background: #f2f4f7;
}

.password-input-wrap .password-toggle:focus-visible,
.auth-secondary-link:focus-visible,
.auth-primary-button:focus-visible {
    outline: 3px solid rgba(201, 154, 56, 0.42);
    outline-offset: 2px;
}

.field-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.password-rules {
    margin: -2px 0 4px;
    padding: 14px 16px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    color: #475467;
    background: #f8fafc;
}

.password-rules p {
    margin: 0 0 9px;
    font-size: 0.84rem;
    font-weight: 500;
}

.password-rules ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 400;
}

.password-rules li i {
    color: #98a2b3;
}

.password-rules li.rule-valid,
.password-rules li.rule-valid i {
    color: #18864b;
}

.auth-primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, #f4d27a, #c99a38);
    font-size: 0.94rem;
    font-weight: 600;
    box-shadow: 0 16px 28px rgba(201, 154, 56, 0.22);
}

.auth-primary-button:hover {
    color: #111827;
    transform: translateY(-1px);
}

.auth-primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.auth-secondary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.auth-secondary-link:hover {
    color: #071428;
    background: #f8fafc;
}

.auth-alert,
.auth-card .message {
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.auth-alert p {
    margin: 0;
}

.auth-alert-error,
.auth-card .message.error {
    border-color: #fecdca;
    color: #b42318;
    background: #fef3f2;
}

.auth-card .message.success {
    border-color: #abefc6;
    color: #067647;
    background: #ecfdf3;
}

@media (max-width: 600px) {
    .auth-page {
        min-height: calc(100vh - 32px);
        padding: 16px 0;
    }

    .auth-card {
        width: 100%;
        padding: 22px;
        border-radius: 18px;
    }

    .auth-brand {
        margin-bottom: 22px;
    }

    .password-rules ul {
        grid-template-columns: 1fr;
    }
}
