html,
body {
    margin: 0;
    min-height: 100%;
}

.acct-page {
    --paper: #f3f1e9;
    --lime: #d8ff47;
    --ink: #171a15;
    --ink-soft: rgba(23, 26, 21, 0.72);
    --ink-faint: rgba(23, 26, 21, 0.5);
    --muted: rgba(243, 241, 233, 0.66);
    --line: rgba(243, 241, 233, 0.22);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100svh;
    overflow: hidden;
    color: var(--paper);
    background: #111311;
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.acct-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.acct-scrim {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 14, 12, 0.88) 0%, rgba(12, 14, 12, 0.6) 45%, rgba(12, 14, 12, 0.2) 85%),
        linear-gradient(0deg, rgba(12, 14, 12, 0.75) 0%, transparent 40%, rgba(12, 14, 12, 0.3) 100%);
}

.acct-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.acct-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 4.5rem, 1440px);
    min-height: 6.25rem;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
}

.acct-brand {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: var(--paper);
    font-family: "Bodoni Moda", "Noto Serif SC", STSong, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.07em;
    text-decoration: none;
}

.acct-brand-mark {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border: 1px solid var(--lime);
    border-radius: 50%;
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 0.8rem;
}

.acct-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.acct-brand-sub {
    margin-top: 0.28rem;
    color: var(--muted);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.acct-home {
    color: var(--paper);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: color 180ms ease;
}

.acct-home:hover,
.acct-home:focus-visible {
    color: var(--lime);
}

.acct-main {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vh, 4rem) 1.25rem;
}

.acct-card {
    position: relative;
    overflow: hidden;
    width: min(26rem, 100%);
    padding: 1.9rem 1.9rem 1.6rem;
    border-radius: 0.9rem;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.55);
    animation: acct-in 500ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.acct-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.22rem;
    background: var(--lime);
    content: "";
}

@keyframes acct-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.acct-eyebrow {
    margin: 0 0 0.4rem;
    color: var(--ink-faint);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.acct-title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.acct-sub {
    margin: 0 0 1.3rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.7;
}

.acct-field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.acct-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.acct-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(23, 26, 21, 0.22);
    border-radius: 0.5rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.86rem;
    font-family: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.acct-input::placeholder {
    color: var(--ink-faint);
}

.acct-input:focus {
    border-color: #9db51f;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 255, 71, 0.45);
}

.acct-help {
    color: var(--ink-faint);
    font-size: 0.68rem;
    line-height: 1.6;
}

.acct-error,
.field-validation-error {
    color: #b3261e;
    font-size: 0.7rem;
    line-height: 1.5;
}

.acct-input.input-validation-error {
    border-color: #b3261e;
}

.acct-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.acct-check {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.76rem;
    cursor: pointer;
}

.acct-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #7a8c1f;
    cursor: pointer;
}

.acct-link {
    color: #5f6f00;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.acct-link:hover,
.acct-link:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

.acct-btn {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.9rem;
    padding: 0.7rem 1.2rem;
    border: 0;
    border-radius: 0.55rem;
    color: var(--ink);
    background: var(--lime);
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.acct-btn:hover,
.acct-btn:focus-visible {
    background: #e4ff6b;
    box-shadow: 0 0.6rem 1.6rem rgba(157, 181, 31, 0.35);
    transform: translateY(-1px);
}

.acct-btn:active {
    transform: translateY(0);
}

.acct-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.acct-btn--ghost {
    border: 1px solid rgba(23, 26, 21, 0.25);
    color: var(--ink);
    background: transparent;
}

.acct-btn--ghost:hover,
.acct-btn--ghost:focus-visible {
    background: rgba(23, 26, 21, 0.06);
    box-shadow: none;
}

.acct-input-group {
    display: flex;
    gap: 0.5rem;
}

.acct-input-group .acct-input {
    flex: 1;
    min-width: 0;
}

.acct-input-group .acct-btn {
    flex: none;
    width: auto;
    min-height: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

.acct-alert {
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.76rem;
    line-height: 1.6;
}

.acct-alert--danger {
    border: 1px solid rgba(179, 38, 30, 0.35);
    color: #8c1d18;
    background: rgba(179, 38, 30, 0.08);
}

.acct-alert--success {
    border: 1px solid rgba(47, 122, 42, 0.35);
    color: #256120;
    background: rgba(47, 122, 42, 0.1);
}

.acct-alert--warning {
    border: 1px solid rgba(154, 103, 0, 0.35);
    color: #7a5200;
    background: rgba(255, 193, 7, 0.14);
}

.acct-alert--info,
.acct-alert--default,
.acct-alert--primary {
    border: 1px solid rgba(23, 26, 21, 0.2);
    color: var(--ink-soft);
    background: rgba(23, 26, 21, 0.05);
}

.acct-foot {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(23, 26, 21, 0.12);
    color: var(--ink-soft);
    font-size: 0.76rem;
    text-align: center;
}

.acct-divider {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin: 1.2rem 0;
    color: var(--ink-faint);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.acct-divider::before,
.acct-divider::after {
    flex: 1;
    height: 1px;
    background: rgba(23, 26, 21, 0.15);
    content: "";
}

.acct-providers {
    display: grid;
    gap: 0.5rem;
}

@media (max-width: 760px) {
    .acct-nav {
        width: min(100% - 2rem, 1440px);
        min-height: 4.25rem;
    }

    .acct-brand {
        font-size: 1.25rem;
    }

    .acct-main {
        align-items: start;
        padding: 1.6rem 1rem 2rem;
    }

    .acct-card {
        padding: 1.5rem 1.25rem 1.3rem;
    }

    .acct-title {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acct-card {
        animation: none;
    }
}
