.account-page {
  color: var(--ink); min-height: 100svh;
  background:
    radial-gradient(ellipse 46vw 45vw at -13vw -16vw, var(--aqua) 0 85%, transparent 85.5%),
    radial-gradient(ellipse 42vw 39vw at 110vw 110%, var(--blush) 0 78%, transparent 78.5%),
    var(--canvas);
}
.account-shell { width: min(100% - 36px, 460px); margin-inline: auto; padding: clamp(28px, 8vh, 82px) 0 36px; }
.account-brand { display: block; width: 156px; margin: 0 auto 27px; }
.account-brand img { display: block; width: 100%; }
.account-panel { padding: clamp(22px, 5vw, 36px); border: 1.5px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: 3px 4px 0 var(--ink); }
.account-panel h1 { margin: 0; font-size: clamp(1.55rem, 5vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
[dir=rtl] .account-panel h1 { letter-spacing: normal; }
.account-panel p { margin: 12px 0 20px; color: var(--mute); }
.account-panel form, .account-panel label { display: grid; gap: 7px; }
.account-panel form { gap: 16px; }
.account-panel label { font-size: .89rem; font-weight: 650; }
.account-panel input { border-radius: 10px; padding: 11px 12px; min-width: 0; border: 1px solid #aa929c; background: #fff; }
.account-panel button.action { width: 100%; min-height: 46px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font-weight: 650; }
.account-panel button.google { color: var(--ink); background: #f4fcfc; border-color: #80aeb4; }
.account-panel .divider { display: flex; align-items: center; gap: 12px; margin: 17px 0; font-size: .85rem; }
.account-panel .divider::before, .account-panel .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.account-panel .alternate { color: var(--rose-ink); text-decoration: underline; text-underline-offset: 3px; min-height: 42px; padding-inline: 0; }
.account-panel .options { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.account-panel #notice:not(:empty) { background: #fff0f4; border-inline-start: 3px solid #ba5280; padding: 12px; margin-bottom: 0; }
.account-panel #notice:empty, .account-panel #intro:empty { display: none; }
.account-shell #back { display: block; width: fit-content; margin: 22px auto 0; font-size: .92rem; }
.account-shell :focus-visible { outline: 3px solid #ae3876; outline-offset: 3px; }

.profile-signin { width: min(100% - 24px, 480px); }
.profile-signin .profile-account { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.profile-signin .modal-body > p:first-child { margin-top: 0; }
.profile-account button.action:not(.google) { background: var(--ink); border-color: var(--ink); }
.profile-signin #profile-back { margin-top: 12px; }
.account-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.account-top .account-brand { width: min(45%, 156px); margin: 0; }
.account-panel input[type=email] { direction: ltr; text-align: start; }

[dir=ltr] .account-panel h1 { font-family: var(--display); font-weight: 760; }
.account-page .account-panel { position: relative; overflow: hidden; }
.account-page .account-panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 7px;
  background: linear-gradient(110deg, var(--strawberry) 0 35%, var(--blush) 35% 50%, var(--aqua) 50% 79%, var(--butter) 79%);
}
.account-panel button.action:not(.google):hover { background: var(--rose-ink); }
.account-panel button.google:hover { background: #def1f2; }
