body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff9ea, #f8fafc);
}

.auth-shell {
    width: min(460px, calc(100% - 32px));
    margin: 70px auto;
}

.auth-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.auth-card h1 {
    margin: 0 0 8px;
}

.auth-card p {
    color: #64748b;
}

.field {
    display: grid;
    gap: 7px;
    margin: 18px 0;
}

.field[hidden] {
    display: none !important;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font: inherit;
    border: 1px solid #dbe2ea;
    border-radius: 13px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
    border-color: #fb8500;
    box-shadow: 0 0 0 4px rgba(251, 133, 0, 0.14);
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #172033;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(251, 133, 0, 0.24);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-password-actions {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 16px;
}

.auth-password-actions button,
.auth-secondary-action {
    border: 0;
    background: transparent;
    color: #c2410c;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.auth-password-actions button:hover,
.auth-secondary-action:hover {
    color: #9a3412;
    text-decoration: underline;
}

.auth-secondary-action {
    display: block;
    margin: 16px auto 0;
}

#forgotPasswordForm[hidden] {
    display: none;
}

.reset-password-strength {
    margin: -8px 0 18px;
    color: #64748b;
    font-size: .82rem;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #f1f5f9;
}

.auth-tabs button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.is-active {
    background: #ffffff;
    color: #b45309;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* IMPORTANT FIX:
   The old file permanently used display:none here,
   so success and error messages were never visible. */
.auth-message {
    display: block;
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.auth-message[hidden] {
    display: none !important;
}

.auth-message--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-message--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-note {
    margin: 18px 0 0 !important;
    color: #94a3b8 !important;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 520px) {
    .auth-shell {
        margin: 36px auto;
    }

    .auth-card {
        padding: 22px;
        border-radius: 20px;
    }
}


.auth-tabs button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-message {
    word-break: break-word;
}

.auth-reset-icon{display:grid;width:54px;height:54px;margin-bottom:18px;place-items:center;border-radius:17px;background:#fff3d6;font-size:1.45rem}.auth-back-link{display:block;margin-top:20px;color:#c2410c;font-weight:750;text-align:center;text-decoration:none}.auth-back-link:hover{text-decoration:underline}
