.account-main { padding-block: clamp(1.3rem, 3vw, 3rem); }
.account-card {
    --account-wave: color-mix(in srgb, #a4bc76 60%, var(--surface));
    position: relative;
    isolation: isolate;
    overflow: clip;
    width: min(100%, 32rem);
    margin: 0 auto;
    padding: clamp(1.8rem, 5vw, 3rem) clamp(1.2rem, 4.5vw, 3rem) clamp(2rem, 5vw, 3.3rem);
    border-radius: 1.5rem;
    background: color-mix(in srgb, var(--surface) 95%, #ecb983);
    box-shadow: 0 8px 28px rgb(64 58 38 / .06);
}
.account-card::before, .account-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(4rem, 12vw, 7rem);
    height: clamp(3rem, 8vw, 4.7rem);
    background: var(--account-wave);
    pointer-events: none;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V23Q43 0 120 0Q43 14 0 80Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.account-card::before { top: .1rem; left: 0; }
.account-card::after {
    right: 0; bottom: 0; width: clamp(5rem, 16vw, 10rem);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80Q75 61 120 0V80Z'/%3E%3C/svg%3E");
}
.account-card .account-brand { display: flex; width: fit-content; margin: 0 auto 1.5rem; }
.account-brand .brand-mark { width: clamp(2.4rem, 6vw, 3.1rem); }
.account-brand .brand-type { width: clamp(7.3rem, 16vw, 9.5rem); }
.account-card h1 { margin: 0 0 .45rem; text-align: center; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 750; line-height: 1.15; }
.account-card h1 + p { margin: 0 auto 1.4rem; text-align: center; line-height: 1.45; }
.account-card form { margin: 1rem 0; }
.account-card .stack { gap: .75rem; }
.account-card fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.account-card legend { margin-bottom: .6rem; font-size: 1.1rem; font-weight: 700; }
.account-card .field { display: grid; gap: .3rem; margin: .55rem 0; }
.account-registration-fields { display: grid; gap: .7rem; }
.account-registration-fields small { margin: .2rem 0 0 .2rem; }
.account-card small { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.account-card [hidden] { display: none !important; }
.account-input { display: grid; position: relative; align-items: center; }
.account-input > .icon { position: absolute; left: .9rem; color: var(--link); pointer-events: none; }
.account-card .account-input input {
    padding-inline: 2.8rem .85rem; min-height: 3rem; border-color: var(--line); border-radius: .8rem;
    background: var(--surface); box-shadow: 0 1px 3px rgb(52 69 43 / .07); font-weight: 450;
}
.account-card input::placeholder { opacity: 1; color: var(--muted); }
.account-card .account-password input { padding-right: 3.05rem; }
.account-reveal {
    position: absolute; right: .12rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    color: var(--link); background: transparent; border: 0; border-radius: .65rem;
}
.account-reveal:hover { background: var(--soft); }
.account-reveal[aria-pressed="false"] .account-eye-slash { display: none; }
.account-assist { justify-self: end; font-size: .86rem; font-weight: 650; }
.account-card .btn { justify-content: center; width: 100%; min-height: 2.9rem; }
.account-card .account-login-form .btn { margin-top: .4rem; }
.account-option {
    display: flex; gap: .65rem; align-items: flex-start; margin-block: .45rem; padding: .75rem;
    border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); cursor: pointer;
}
.account-option input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; flex-shrink: 0; }
.account-kind { display: grid; grid-template-columns: 1.65rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 4.4rem; }
.account-kind > .icon { color: var(--link); }
.account-kind input { margin: 0; }
.account-kind:has(:checked) { border-color: var(--link); background: var(--soft); }
.account-kind strong { display: block; margin: 0 0 .15rem; }
.account-divider { display: flex; align-items: center; gap: .8rem; margin: .9rem 0; color: var(--muted); font-size: .87rem; font-weight: 650; }
.account-divider::before, .account-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.account-provider, .account-secondary {
    display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.8rem; padding: .55rem .9rem;
    border-radius: .8rem; border: 1px solid var(--line); color: var(--link); font-weight: 650; text-decoration: none; background: var(--surface);
}
.account-provider { color: #1f1f1f; background: #fff; border-color: #8a8d8b; font-size: .9rem; font-weight: 550; }
.account-provider:hover { background: #f7f8f7; }
.account-provider img { object-fit: contain; }
.account-footer { margin: 1.3rem 0 0; text-align: center; font-size: .9rem; }
.account-footer a { font-weight: 650; }
.account-footer.account-activation { margin-top: .45rem; font-size: .82rem; }
.account-progress { margin: 0 auto .15rem; }
.account-progress ol { display: flex; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.account-progress li { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--soft); font-size: .82rem; font-weight: 700; }
.account-progress li.current { background: var(--button); color: var(--button-text); }
.account-actions { display: flex; gap: .6rem; align-items: stretch; }
.account-check, .account-symbol {
    display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin: 0 auto .8rem;
    border-radius: 50%; color: var(--link); background: var(--soft); font-size: 1.65rem;
}
.account-check { background: var(--button); color: var(--button-text); }
body[data-theme="dark"] .account-brand .brand-lockup { padding: .3rem .65rem; border-radius: .7rem; background: var(--cream); }
@media (prefers-color-scheme: dark) {
    body[data-theme="system"] .account-brand .brand-lockup { padding: .3rem .65rem; border-radius: .7rem; background: var(--cream); }
}
@media (max-width: 540px) {
    .account-main { padding-inline: .7rem; padding-top: .8rem; }
    .account-card { padding-inline: clamp(1rem, 5vw, 1.65rem); border-radius: 1.15rem; }
    .account-card .account-brand { display: none; }
}
