.account-page {
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: radial-gradient(ellipse at 20% 10%, #15498b, transparent 57%), #06152f;
}
.account-shell { max-width: 61rem; margin: 0 auto; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: 0 0 1rem; }
.account-brand, .account-gallery {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--ink); text-decoration: none;
}
.account-brand { color: #fff; font-size: 1.2rem; font-weight: 850; letter-spacing: .12em; line-height: 1.05; }
.account-brand small {
    display: block; margin-top: .27rem; color: #c5d9fb;
    font-size: .6rem; letter-spacing: .09em; text-transform: uppercase;
}
.account-brand-icon, .account-heading-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.account-brand-icon { border-radius: 11px; }
.account-gallery {
    min-height: 44px; padding: .4rem .75rem; border: 1px solid #d7e1fb; border-radius: 50px;
    background: #f9faff; color: #253d92; font-size: .82rem; font-weight: 720;
}
.account-gallery:hover { background: #e8eeff; }
.account-gallery .icon, .account-text-link .icon { width: 17px; height: 17px; }

.account-layout {
    overflow: hidden; border: 1px solid #7cabf665; border-radius: 25px;
    background: #fff; box-shadow: 0 22px 58px #020a20a6;
}
.account-cover {
    min-height: clamp(13rem, 69vw, 21rem);
    background: #071d49 var(--asia-art) center 48% / cover no-repeat;
}

.account-panel { min-width: 0; padding: clamp(1.1rem, 5vw, 2.3rem); overflow-wrap: anywhere; }
.account-heading-icon { margin-bottom: .65rem; background: #edf1ff; color: var(--blue-dark); }
.account-panel h1 {
    margin: 0 0 .45rem; font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 790; letter-spacing: -.055em; line-height: 1.05;
}
.account-panel h2 { font-size: 1.12rem; font-weight: 750; margin: 1.35rem 0 .5rem; }
.account-panel > p:not([role]) { max-width: 35ch; margin: 0 0 .7rem; color: var(--muted); font-size: .92rem; }
.account-form { display: grid; gap: .85rem; margin: 1rem 0 .5rem; }
.account-form label { display: grid; gap: .35rem; font-size: .87rem; font-weight: 720; }
.account-field { display: grid; gap: .32rem; }
.account-input { position: relative; }
.account-input > .icon {
    position: absolute; top: 50%; left: .8rem; transform: translateY(-50%); width: 18px; height: 18px;
    color: var(--muted); pointer-events: none;
}
.account-form input:not([type=hidden]) {
    min-height: 49px; width: 100%; padding: .6rem .75rem;
    border: 1px solid #bac7da; border-radius: 13px; background: #f9fbff;
    color: var(--ink); font: inherit; font-size: 1rem; font-weight: 500;
}
.account-input input:not([type=hidden]) { padding-inline-start: 2.45rem; }
.account-input-password input:not([type=hidden]) { padding-inline-end: 3.15rem; }
.account-form input:focus { border-color: var(--blue); background: #fff; outline: 2px solid #345ceb; outline-offset: 1px; }
.account-peek {
    position: absolute; top: 50%; inset-inline-end: 3px; transform: translateY(-50%);
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 10px; background: transparent; color: var(--muted);
}
.account-peek:hover, .account-peek[aria-pressed=true] { background: #edf1ff; color: var(--blue-dark); }
.account-peek .icon { width: 18px; height: 18px; }
.account-form > button { justify-self: start; }
.account-form > .account-submit { width: 100%; min-height: 48px; margin-top: .25rem; font-size: .97rem; }
.account-text-link {
    display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; width: fit-content;
    color: var(--blue-dark); font-size: .88rem; font-weight: 700; text-underline-offset: .22em;
}
.account-error, .account-notice { padding: .75rem; border-radius: 12px; margin: .8rem 0; font-size: .9rem; }
.account-error { color: #801226; background: #fbe7eb; }
.account-notice { color: #214c38; background: #e4f4e8; }

@media (min-width: 750px) {
    .account-page { display: grid; align-items: center; }
    .account-shell { width: 100%; }
    .account-header { margin-bottom: 1.35rem; }
    .account-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 32rem; }
    .account-cover { min-height: 0; }
    .account-panel { align-self: center; padding: clamp(1.5rem, 4vw, 3.2rem); }
}
