.auth-name-grid,
.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-name-grid .auth-field {
    min-width: 0;
}

.settings-modal {
    width: min(620px, calc(100vw - 28px));
}

.settings-modal-body {
    display: grid;
    gap: 14px;
    max-height: min(76vh, 720px);
    overflow-y: auto;
    padding: 16px;
}

.account-settings-section {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border, rgba(148, 163, 184, .24));
    border-radius: 14px;
    background: var(--surface, rgba(255, 255, 255, .76));
}

[data-theme="dark"] .account-settings-section {
    background: rgba(15, 23, 42, .58);
    border-color: rgba(255, 255, 255, .1);
}

.account-settings-section h3 {
    margin: 0;
    color: var(--text, #0f172a);
    font-size: 15px;
    font-weight: 800;
}

.account-wide {
    grid-column: 1 / -1;
}

.account-password-form {
    display: grid;
    gap: 10px;
}

.account-password-form > small {
    color: var(--muted, #64748b);
    line-height: 1.45;
}

.account-inline-status {
    padding: 9px 11px;
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 9px;
    background: rgba(16, 185, 129, .1);
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.account-inline-status.is-error {
    border-color: rgba(239, 68, 68, .4);
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
}

[data-theme="dark"] .account-inline-status:not(.is-error) {
    color: #6ee7b7;
}

.password-reset-page {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #e2e8f0;
    background: #0b0f19;
    font-family: Inter, system-ui, sans-serif;
}

.password-reset-card {
    width: min(460px, 100%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(17, 24, 39, .86);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    backdrop-filter: blur(20px);
}

.password-reset-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.password-reset-brand img {
    width: 154px;
    height: auto;
}

.password-reset-card h1 {
    margin: 0 0 8px;
    font-size: 25px;
}

.password-reset-card > p {
    margin: 0 0 18px;
    color: #94a3b8;
    line-height: 1.55;
}

.password-reset-card .field {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
}

.password-reset-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #334155;
    border-radius: 11px;
    color: #f8fafc;
    background: #111827;
}

.password-reset-card input:focus {
    border-color: #0ea5e9;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .2);
}

.password-reset-card .auth-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(115deg, #0ea5e9, #10b981);
    box-shadow: 0 8px 24px rgba(14, 165, 233, .2), 0 5px 20px rgba(16, 185, 129, .16);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.password-reset-card .auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 28px rgba(14, 165, 233, .25), 0 7px 22px rgba(16, 185, 129, .2);
    filter: saturate(1.08);
}

.password-reset-card .auth-primary:focus-visible {
    outline: 3px solid rgba(125, 211, 252, .42);
    outline-offset: 2px;
}

.password-reset-card .auth-primary:disabled {
    opacity: .62;
    cursor: wait;
    transform: none;
}

.password-reset-back {
    display: block;
    margin-top: 14px;
    color: #7dd3fc;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 600px) {
    .auth-name-grid,
    .account-profile-grid {
        grid-template-columns: 1fr;
    }

    .account-wide {
        grid-column: auto;
    }

    .settings-modal-body {
        max-height: calc(100dvh - 92px);
    }
}
