/* Account management: shared, locally scoped blue / mint / emerald theme. */
.account-design {
    --account-blue: #245ef4;
    --account-green: #008566;
    --account-ink: #12253e;
    --account-muted: #5d7087;
    --account-border: #dae6f2;
    font-family: "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
    color: var(--account-ink);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
    width: 100%;
}

.account-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: clamp(12px, 1.5vw, 24px);
    min-height: 75vh;
    background: radial-gradient(ellipse at 8% 32%, #e8f0ff99, transparent 48%), radial-gradient(ellipse at 95% 70%, #d7f8eb88, transparent 48%);
    box-sizing: border-box;
}

.account-design *, .account-design *::before, .account-design *::after {
    box-sizing: border-box;
}

.account-design h1, .account-design h2, .account-design p {
    margin: 0;
}

.account-design h1 {
    font-size: clamp(1.45rem, 1.2rem + .65vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.account-design h2 {
    font-size: clamp(1.12rem, 1rem + .25vw, 1.35rem);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.account-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 2.5vw, 32px);
    margin-bottom: 24px;
    border: 1px solid #d3e3f9;
    border-radius: 20px;
    background: linear-gradient(115deg, #edf4fff2, #ffffffd9 55%, #e9fbf4e6);
    box-shadow: inset 0 1px 0 #fff, 0 6px 24px #285a9205;
}

.account-hero-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(140deg, #3678ff, #2451e8);
    box-shadow: 0 6px 16px #245ef430;
}

.account-eyebrow {
    display: block;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .15em;
    color: var(--account-blue);
    margin-bottom: 6px !important;
}

.account-subtitle, .account-section-heading p {
    color: var(--account-muted);
    font-size: .9rem;
    margin-top: 6px !important;
}

.account-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 30px;
    border: 1px solid #c7eadf;
    color: #08735d;
    background: #ffffffb3;
    font-size: .75rem;
    font-weight: 600;
}

    .account-hero-tag > span {
        height: 6px;
        width: 6px;
        background: #12a17d;
        border-radius: 50%;
    }

.account-glass {
    background: #ffffffd9;
    border: 1px solid var(--account-border);
    border-radius: 20px;
    box-shadow: 0 12px 36px #224c7d09, inset 0 1px 0 #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.account-profile-panel {
    overflow: hidden;
}

.account-tabs .mud-tabs-toolbar {
    background: #f4f8ffb3;
    border-bottom: 1px solid var(--account-border);
    padding: 8px 16px 0;
}

.account-tabs .mud-tab {
    text-transform: none;
    font-family: inherit;
    font-weight: 600;
    font-size: .9rem;
    min-height: 54px;
    gap: 8px;
}

    .account-tabs .mud-tab.mud-tab-active {
        color: var(--account-blue);
    }

.account-tabs .mud-tabs-panels {
    padding: clamp(16px, 2.4vw, 30px);
}

.account-content-layout {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.8fr);
    gap: 24px;
    align-items: start;
}

    .account-content-layout > * {
        min-width: 0;
    }

.account-identity, .account-security-note {
    padding: clamp(24px, 2.5vw, 36px);
    background: linear-gradient(155deg, #f2f7ffcc, #ffffffa6 55%, #edfaf5cc);
}

.account-identity {
    text-align: center;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 4px auto 24px;
    border-radius: 26px;
    color: #1754d2;
    background: linear-gradient(135deg, #d9e8ff, #e7f9f2);
    border: 3px solid #fff;
    box-shadow: 0 8px 24px #245ef418;
    font-size: 1.7rem;
    font-weight: 700;
}

.account-username {
    font-size: .86rem;
    color: var(--account-muted);
    margin-top: 6px !important;
}

.account-divider {
    height: 1px;
    background: var(--account-border);
    margin: 24px 0;
}

.account-side-note {
    display: flex;
    gap: 10px;
    text-align: left;
    color: var(--account-muted);
    font-size: .82rem;
}

    .account-side-note .mud-icon-root {
        flex-shrink: 0;
        font-size: 20px;
        color: #4c80c4;
    }

.account-form-card {
    padding: clamp(22px, 3vw, 40px);
}

.account-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.account-section-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 13px;
    color: var(--account-green);
    background: #e5f6ef;
}

.account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.account-field-full {
    grid-column: 1 / -1;
}

.account-design .mud-input-control {
    margin-top: 0;
    min-width: 0;
    font-family: inherit;
}

.account-design .mud-input, .account-design .mud-input-label, .account-design .mud-button {
    font-family: inherit;
}

.account-design .mud-input-outlined {
    border-radius: 10px;
    background: #ffffff91;
    color: var(--account-ink);
    font-size: .95rem;
}

.account-design .mud-input-outlined-border {
    border-color: #cad8e7;
}

.account-design .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #759bd4;
}

.account-design .mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--account-blue);
}

.account-design .mud-input-label {
    font-size: .95rem;
    color: #546a83;
}

.account-design .mud-input-helper-text {
    font-size: .75rem;
    color: var(--account-muted);
}

.account-readonly .mud-input-outlined {
    background: #f1f5faad;
    color: #657a91;
}

.account-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e4ecf4;
    margin-top: 32px;
    padding-top: 24px;
}

    .account-form-footer > span {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--account-muted);
        font-size: .75rem;
    }

        .account-form-footer > span .mud-icon-root {
            font-size: 16px;
            flex-shrink: 0;
        }

.account-design .account-primary-button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 10px;
    background: linear-gradient(120deg, #00896c, #00765b);
    color: #fff;
    font-size: .875rem;
    font-weight: 650;
    text-transform: none;
    box-shadow: 0 4px 12px #00856624;
}

    .account-design .account-primary-button:hover {
        background: #006c54;
        box-shadow: 0 6px 18px #00856630;
    }

    .account-design .account-primary-button:disabled {
        background: #e2e9e7;
        color: #637a72;
        box-shadow: none;
    }

.account-design :focus-visible {
    outline: 3px solid #2764e6;
    outline-offset: 3px;
}

.account-security-art {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    color: #00856c;
    background: linear-gradient(140deg, #dbf8ed, #e4efff);
    border: 2px solid white;
    box-shadow: 0 6px 18px #00856612;
    margin-bottom: 28px;
}

    .account-security-art .mud-icon-root {
        font-size: 34px;
    }

.account-security-note > p {
    color: var(--account-muted);
    font-size: .88rem;
    margin-top: 14px;
}

.account-tips {
    margin: 24px 0 0;
    padding-left: 18px;
    color: #466579;
    font-size: .82rem;
}

    .account-tips li {
        padding-left: 3px;
        margin-bottom: 14px;
    }

        .account-tips li::marker {
            color: #009477;
        }

.account-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    color: #486586;
    padding: 12px 16px;
    border: 1px solid #e0ebfa;
    border-radius: 10px;
    font-size: .82rem;
    margin-bottom: 28px;
}

    .account-user-pill .mud-icon-root {
        color: #3974cc;
        flex-shrink: 0;
    }

.account-password-fields {
    display: grid;
    gap: 24px;
}

    .account-password-fields .account-divider {
        margin: 0;
    }

.account-alert {
    margin-bottom: 20px;
    border-radius: 10px;
}

.account-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    color: var(--account-muted);
}

.account-design .validation-errors {
    color: #b42338;
    font-size: .85rem;
    margin-bottom: 20px;
}

@supports not (backdrop-filter: blur(1px)) {
    .account-glass {
        background: #fff;
    }
}

@media (min-width: 1800px) {
    .account-page {
        padding-top: 44px;
    }
}

@media (max-width: 960px) {
    .account-content-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .account-identity {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 18px;
        text-align: left;
        align-items: center;
    }

    .account-avatar {
        grid-row: 1 / 4;
        width: 64px;
        height: 64px;
        border-radius: 20px;
        margin: 0;
        font-size: 1.3rem;
    }

    .account-identity .account-divider, .account-identity .account-side-note {
        display: none;
    }

    .account-security-note {
        display: none;
    }

    .account-hero-tag {
        display: none;
    }
}

@media (max-width: 600px) {
    .account-page {
        padding: 12px;
    }

    .account-hero {
        padding: 20px 16px;
        gap: 12px;
        border-radius: 15px;
        margin-bottom: 16px;
    }

    .account-hero-icon {
        flex-basis: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .account-eyebrow {
        font-size: .58rem;
        letter-spacing: .1em;
    }

    .account-subtitle {
        font-size: .82rem;
    }

    .account-glass {
        border-radius: 15px;
    }

    .account-form-card {
        padding: 24px 16px;
    }

    .account-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

        .account-form-footer .mud-button-root {
            width: 100%;
        }

    .account-section-heading {
        gap: 10px;
    }

        .account-section-heading p {
            font-size: .82rem;
        }

    .account-tabs .mud-tabs-toolbar {
        padding: 0;
    }

    .account-tabs .mud-tabs-panels {
        padding: 12px;
    }

    .account-tabs .mud-tab {
        font-size: .8rem;
        min-width: 0;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-design *, .account-design *::before, .account-design *::after {
        transition: none !important;
        animation: none !important;
    }
}
