/* Minha conta (auth.html): editorial identity (css/editorial.css) applied to login, sign-up, password recovery and the account dashboard. */
/* login/callback.html still uses the legacy css/auth.css. */
body.auth-page {
  --auth-field: color-mix(in srgb, var(--home-bg) 55%, var(--home-surface));
  --auth-raised: var(--ui-raised);
  --auth-tape: rgba(143, 214, 255, .6);
  --auth-danger: var(--home-soon);
  display: flex; flex-direction: column; min-height: 100svh;
}
html[data-theme="light"] body.auth-page { --auth-field: #f6f9fc; --auth-raised: #fff; }
body.auth-page.has-auth-modal, body.auth-page.has-auth-message-modal { overflow: hidden; }
.auth-page .site-footer { margin-top: 0; }
.auth-page [hidden] { display: none !important; }
/* Until the script knows whether the account is signed in, the forms stay out of a direct #account-settings visit. */
html.auth-account-boot :is(.auth-copy, .auth-scene, .auth-forms, .auth-mascot, .auth-hello) { display: none !important; }

/* Canvas: the landing's dotted paper with soft washes and drawn rings. */
.auth-main { position: relative; isolation: isolate; flex: 1; min-width: 0; overflow: clip; padding: 56px 0 104px; color: var(--home-text);
  background:
    radial-gradient(circle, var(--home-dot) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    repeating-radial-gradient(ellipse at -14% 96%, transparent 0 62px, var(--home-grid) 63px 64px, transparent 65px 112px),
    radial-gradient(ellipse at 6% 0%, var(--home-cyan-wash), transparent 55%),
    radial-gradient(ellipse at 96% 18%, var(--home-indigo-wash), transparent 48%),
    linear-gradient(180deg, var(--home-canvas), var(--home-blue-wash)); }
.auth-main :is(h1, h2, h3) { color: var(--home-text); text-wrap: balance; }
.auth-main p { text-wrap: pretty; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); grid-template-rows: auto 1fr; grid-template-areas: "copy stage" "scene stage";
  column-gap: clamp(40px, 6vw, 96px); row-gap: 28px; align-items: start; transition: grid-template-columns .45s cubic-bezier(.2, .7, .3, 1); }
body.is-register-mode .auth-shell { grid-template-columns: minmax(0, .78fr) minmax(0, 640px); }

/* Copy: kicker, title with a pencil underline, lede. */
.auth-copy { grid-area: copy; padding-top: 28px; }
.auth-main .auth-kicker { margin-bottom: 18px; }
.auth-copy h1 { max-width: 13ch; margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
body.is-register-mode .auth-copy h1 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
.auth-scribble { display: block; width: min(250px, 62%); height: 18px; margin: 12px 0 24px; overflow: visible; }
.auth-scribble path { fill: none; stroke: var(--home-pencil); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.auth-lede { max-width: 42ch; margin: 0; font-size: 1.1rem; line-height: 1.7; color: var(--home-muted); }

/* Scene: what the account keeps, as a notebook page, a taped photo and a sticky note. */
.auth-scene { grid-area: scene; position: relative; min-height: 370px; padding: 20px 0 40px; }
.auth-notes { position: relative; z-index: 2; width: min(370px, 74%); margin: 0; padding: 22px 26px 18px 66px; border-radius: 4px; rotate: -2deg;
  background-color: #fff;
  background-image: linear-gradient(90deg, transparent 46px, rgba(212, 70, 91, .5) 46px 47px, transparent 47px), repeating-linear-gradient(to bottom, transparent 0 33px, rgba(71, 131, 188, .22) 33px 34px);
  background-position: 0 0, 0 18px;
  box-shadow: 0 1px 0 #e9eef3, 0 3px 0 #e1e8ef, 0 30px 50px -28px rgba(6, 20, 40, .55); }
.auth-notes::before { content: ""; position: absolute; top: -12px; left: 34%; width: 104px; height: 24px; rotate: -4deg; background: var(--auth-tape);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.auth-notes-title { margin: 0 0 4px; font: 700 1.7rem/34px var(--home-hand); color: #d4465b; }
.auth-benefits { display: grid; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { position: relative; font: 700 1.42rem/34px var(--home-hand); color: var(--home-pencil); }
.auth-benefits i { position: absolute; top: 4px; left: -42px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: .86rem;
  background: #e6f1fa; color: var(--home-accent); }
.auth-photo { position: absolute; z-index: 1; top: 0; right: 0; width: 44%; max-width: 270px; margin: 0; padding: 8px 8px 0; border-radius: 3px; rotate: 6deg; background: #fff;
  box-shadow: 0 16px 30px -14px rgba(6, 30, 60, .55), 0 2px 4px rgba(6, 30, 60, .12); transition: rotate .35s ease, translate .35s ease; }
.auth-photo::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -11px; width: 38%; height: 22px; translate: -50% 0; rotate: 5deg;
  background: rgba(255, 214, 64, .62); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.auth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.auth-photo figcaption { padding: 6px 2px 8px; font: 700 1.25rem/1 var(--home-hand); color: #23344d; text-align: center; }
.auth-sticky { position: absolute; z-index: 3; left: 50%; bottom: 0; width: 158px; aspect-ratio: 1; margin: 0; padding: 18px 16px; rotate: -5deg; background: #ffe17a;
  box-shadow: 0 18px 24px -14px rgba(80, 60, 0, .5); font: 700 1.4rem/1.1 var(--home-hand); color: #4a3b00; transition: rotate .35s ease; }
.auth-sticky::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; background: linear-gradient(135deg, #f2cf55 50%, rgba(0, 0, 0, .08) 50%); }
.auth-scene:hover .auth-photo { rotate: 3deg; translate: 0 -4px; }
.auth-scene:hover .auth-sticky { rotate: -1deg; }

/* Stage: the mascot peeks over the panel. */
.auth-stage { grid-area: stage; position: relative; padding-top: 92px; }
.auth-mascot { position: absolute; z-index: 0; top: 0; right: 30px; width: 116px; height: auto; rotate: 7deg; pointer-events: none;
  filter: drop-shadow(0 14px 16px rgba(6, 30, 60, .2)); }
.auth-hello { top: 22px; right: 150px; rotate: -4deg; }

.auth-panel { position: relative; z-index: 1; padding: 34px 34px 30px; border-radius: 24px; background: var(--home-surface); border: 1px solid var(--home-line);
  box-shadow: var(--home-card-shadow); }
.auth-panel::before { content: ""; position: absolute; top: -12px; left: 34px; width: 112px; height: 24px; rotate: -5deg; background: var(--auth-tape);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }

.auth-status { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; font-weight: 700; line-height: 1.5;
  background: color-mix(in srgb, var(--home-accent) 12%, transparent); color: var(--home-text); }
.auth-status:empty { display: none; }
.auth-status.is-error { background: color-mix(in srgb, var(--auth-danger) 14%, transparent); color: var(--auth-danger); }
.auth-status.is-success { background: color-mix(in srgb, var(--home-ok) 14%, transparent); color: var(--home-ok); }

/* Login / sign-up switch: a pill with a sliding thumb. */
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 100px; background: var(--auth-field); border: 1px solid var(--home-line); }
.auth-tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 100px; background: var(--home-button-fill);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--home-accent) 60%, transparent); transition: translate .4s cubic-bezier(.2, .8, .3, 1); }
.auth-tabs:has(.auth-tab[data-auth-panel="register"].is-active)::before { translate: 100% 0; }
.auth-tab { position: relative; z-index: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: 100px; background: transparent; color: var(--home-muted);
  font-size: .92rem; font-weight: 800; cursor: pointer; transition: color .3s; }
.auth-tab:hover { color: var(--home-text); }
.auth-tab.is-active { color: var(--home-button-ink); }
.auth-tab:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .auth-tabs::before { display: none; }
  .auth-tab.is-active { background: var(--home-button-fill); }
}

/* Social sign-in. */
.social-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.social-auth-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 100px;
  border: 1px solid var(--home-line); background: var(--auth-raised); color: var(--home-text); font-size: .86rem; font-weight: 750; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.social-auth-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-auth-button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--home-accent); box-shadow: 0 12px 22px -16px rgba(6, 30, 60, .6); }
.social-auth-button:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.social-auth-button:disabled { opacity: .55; cursor: not-allowed; }
.social-auth-icon { flex: none; width: 18px; height: 18px; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; font-size: var(--type-caption); font-weight: 700; color: var(--home-muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--home-line); }

/* Forms (sign-in, sign-up, recovery and the account dialogs share the same fields). */
.auth-form, .account-tool { display: grid; gap: 16px; }
.auth-form label, .account-tool label { display: grid; gap: 7px; min-width: 0; }
.auth-form label > span, .account-tool label > span { font-size: .875rem; font-weight: 800; color: var(--home-text); }
.auth-form :is(input:not([type="checkbox"]), select), .account-tool :is(input, select) { width: 100%; min-height: 48px; padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--home-line); background-color: var(--auth-field); color: var(--home-text); font-size: .96rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.auth-form input::placeholder, .account-tool input::placeholder { color: var(--home-muted); opacity: .8; }
.auth-form :is(input:not([type="checkbox"]), select):focus, .account-tool :is(input, select):focus { outline: none; border-color: var(--home-accent); background-color: var(--auth-raised);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-accent) 18%, transparent); }
.auth-form select, .account-tool select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--home-muted) 50%), linear-gradient(135deg, var(--home-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: .36rem .36rem; background-repeat: no-repeat; }
.auth-form select:disabled { opacity: .6; cursor: not-allowed; }
.auth-input--uppercase { text-transform: uppercase; }
.auth-input--email { text-transform: none; }
.auth-page .password-visibility-toggle { color: var(--home-muted); border-radius: 10px; }
.auth-page .password-visibility-toggle:hover { background: color-mix(in srgb, var(--home-accent) 12%, transparent); color: var(--home-text); }
.auth-page .password-visibility-toggle:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 1px; }

.auth-form-grid--register { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.auth-form .legal-acceptance { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--auth-field);
  font-size: var(--type-caption); line-height: 1.5; color: var(--home-muted); cursor: pointer; }
.auth-form .legal-acceptance > span { font-weight: 600; color: var(--home-muted); }
.legal-acceptance input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--home-accent); }
.legal-acceptance a { color: var(--home-blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.turnstile-box { display: grid; justify-items: start; min-height: 65px; overflow: hidden; }
.turnstile-box:empty { display: none; }
.turnstile-box > div, .turnstile-box iframe { max-width: 100%; }
.turnstile-message { margin: -6px 0 0; font-size: var(--type-caption); font-weight: 700; color: var(--home-muted); }
.turnstile-message:empty { display: none; }
.turnstile-message.is-error { color: var(--auth-danger); }
.turnstile-message.is-success { color: var(--home-ok); }

.auth-form-actions { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-form-actions--split { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 2px; }
.auth-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 4px; border: 0; background: transparent;
  color: var(--home-blue); font-size: .86rem; font-weight: 800; cursor: pointer; }
.auth-link-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.auth-link-button--secondary { color: var(--home-muted); }
.password-recovery-copy { margin: 0; font-size: .96rem; line-height: 1.65; color: var(--home-muted); }

.auth-submit, .account-submit, .auth-message-ok { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 100px; background: var(--home-button-fill); color: var(--home-button-ink); font-size: .95rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--home-accent) 60%, transparent); transition: transform .25s, box-shadow .25s, opacity .2s; }
.auth-submit i { transition: transform .2s; }
.auth-submit:hover:not(:disabled), .account-submit:hover:not(:disabled), .auth-message-ok:hover { transform: translateY(-2px); }
.auth-submit:hover:not(:disabled) i { transform: translateX(3px); }
.auth-submit:focus-visible, .account-submit:focus-visible, .auth-message-ok:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 3px; }
.auth-submit:disabled, .account-submit:disabled { opacity: .6; cursor: progress; box-shadow: none; }

/* Account dashboard: an ID card with the account shortcuts below. */
body[data-auth-view="account"] .auth-shell { max-width: 980px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "stage"; row-gap: 8px; }
body[data-auth-view="account"] :is(.auth-scene, .auth-lede) { display: none; }
body[data-auth-view="account"] .auth-copy { padding-top: 0; }
body[data-auth-view="account"] .auth-copy h1 { max-width: none; font-size: clamp(2.1rem, 4vw, 3.2rem); }
body[data-auth-view="account"] .auth-scribble { margin-bottom: 0; }
body[data-auth-view="account"] .auth-mascot { right: 56px; }
body[data-auth-view="account"] .auth-hello { right: 178px; }

.account-dashboard-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge badge" "identity actions"; gap: 18px 24px; align-items: center;
  margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px dashed var(--home-line); }
.account-badge { grid-area: badge; display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--type-kicker); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--home-blue); }
.account-badge img { width: 28px; height: 28px; }
.account-identity { grid-area: identity; display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-identity > div { min-width: 0; }
.account-avatar { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--home-button-fill); color: var(--home-button-ink);
  font: 800 1.45rem/1 var(--font-title); letter-spacing: -.02em; box-shadow: 0 0 0 4px var(--home-surface), 0 0 0 6px color-mix(in srgb, var(--home-accent) 40%, transparent); }
.account-name { margin: 0; font: 700 clamp(1.25rem, 2.2vw, 1.55rem)/1.2 var(--font-title); letter-spacing: -.03em; color: var(--home-text); overflow-wrap: anywhere; }
#account-email { margin: 4px 0 0; font-size: .95rem; color: var(--home-muted); overflow-wrap: anywhere; }
.account-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }
.account-logout { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--home-line);
  background: transparent; color: var(--home-text); font-size: .88rem; font-weight: 800; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.account-logout:hover:not(:disabled) { border-color: var(--auth-danger); color: var(--auth-danger); background: color-mix(in srgb, var(--auth-danger) 8%, transparent); }
.account-logout:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.account-logout:disabled { opacity: .6; cursor: progress; }

.account-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.account-action-card { --tone: var(--home-accent); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon title" "icon text"; align-items: center;
  gap: 2px 14px; min-height: 84px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--home-line); background: var(--auth-field); color: var(--home-text);
  text-align: left; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.account-action-card:hover { transform: translateY(-3px); border-color: var(--tone); box-shadow: 0 18px 30px -22px rgba(6, 30, 60, .6); }
.account-action-card:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 3px; }
.account-action-card > i { grid-area: icon; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem;
  background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); transition: rotate .25s; }
.account-action-card:hover > i { rotate: -8deg; }
.account-action-card > span { grid-area: title; align-self: end; font-size: .98rem; font-weight: 800; line-height: 1.25; }
.account-action-card > small { grid-area: text; align-self: start; font-size: var(--type-caption); line-height: 1.4; color: var(--home-muted); }
.account-action-card--password { --tone: var(--home-indigo); }
.account-action-card--student { --tone: var(--home-ok); }
.account-action-card--teacher { --tone: var(--home-beta); }
html[data-theme="light"] .account-action-card--teacher { --tone: #b06a00; }

/* Dialogs: account tools and status messages. The account dialog is moved to <body> by the script. */
.account-modal, .auth-message-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(6, 14, 26, .6); backdrop-filter: blur(4px); }
.auth-message-modal { z-index: 320; }
.account-modal-card, .auth-message-card { position: relative; width: min(440px, 100%); border-radius: 22px; background: var(--home-surface); color: var(--home-text);
  border: 1px solid var(--home-line); box-shadow: var(--home-card-shadow); }
.account-modal-card { padding: 30px 28px 28px; }
.account-modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--home-line); background: transparent; color: var(--home-text); cursor: pointer; transition: background .2s; }
.account-modal-close:hover { background: var(--auth-field); }
.account-modal-close:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
.account-modal-head { display: flex; align-items: center; gap: 14px; margin: 0 44px 22px 0; }
.account-modal-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem;
  background: color-mix(in srgb, var(--home-accent) 16%, transparent); color: var(--home-accent); }
.account-modal-head h3 { margin: 0; font-size: 1.28rem; font-weight: 700; }
.account-submit { margin-top: 4px; }

.auth-message-card { width: min(420px, 100%); padding: 34px 28px 26px; text-align: center; }
.auth-message-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 18px; font-size: 1.6rem;
  background: color-mix(in srgb, var(--home-accent) 16%, transparent); color: var(--home-accent); rotate: -4deg; }
.auth-message-modal.is-error .auth-message-icon { background: color-mix(in srgb, var(--auth-danger) 16%, transparent); color: var(--auth-danger); }
.auth-message-modal.is-success .auth-message-icon { background: color-mix(in srgb, var(--home-ok) 16%, transparent); color: var(--home-ok); }
.auth-message-content h2 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; }
.auth-message-content p { margin: 0 0 24px; line-height: 1.6; color: var(--home-muted); overflow-wrap: anywhere; }
.auth-message-ok { width: auto; min-width: 140px; }

/* Motion: the page settles in once; switching forms fades the new one in. */
@media (prefers-reduced-motion: no-preference) {
  .auth-copy, .auth-scene, .auth-panel { animation: auth-rise .7s cubic-bezier(.2, .7, .3, 1) backwards; }
  .auth-scene { animation-delay: .18s; }
  .auth-panel { animation-delay: .1s; }
  .auth-mascot { animation: auth-peek .8s cubic-bezier(.3, 1.4, .5, 1) .45s backwards; }
  .auth-hello { animation: auth-fade .5s ease 1.1s backwards; }
  .auth-scribble path { animation: auth-draw .9s ease .35s backwards; }
  .auth-form:not([hidden]), .account-card:not([hidden]) { animation: auth-fade .35s ease backwards; }
  .account-modal:not([hidden]) .account-modal-card, .auth-message-modal:not([hidden]) .auth-message-card { animation: auth-pop .3s cubic-bezier(.2, .9, .3, 1.2) backwards; }
}
@keyframes auth-rise { from { opacity: 0; translate: 0 26px; } }
@keyframes auth-peek { from { translate: 0 80px; } }
@keyframes auth-fade { from { opacity: 0; translate: 0 8px; } }
@keyframes auth-draw { from { stroke-dashoffset: 1; } }
@keyframes auth-pop { from { opacity: 0; scale: .94; } }

@media (max-width: 1100px) {
  body.is-register-mode .auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "stage" "scene"; }
  body.is-register-mode .auth-copy h1 { max-width: 18ch; }
  body.is-register-mode .auth-stage { width: min(100%, 680px); }
}
@media (max-width: 960px) {
  .auth-main { padding: 40px 0 80px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "stage" "scene"; row-gap: 20px; }
  .auth-copy { padding-top: 0; }
  .auth-copy h1 { max-width: 16ch; }
  .auth-stage { width: min(100%, 560px); }
  .auth-scene { width: min(100%, 600px); margin-top: 32px; }
}
@media (max-width: 600px) {
  .auth-main { padding: 28px 0 64px; }
  .auth-copy h1, body.is-register-mode .auth-copy h1, body[data-auth-view="account"] .auth-copy h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .auth-scribble { margin: 10px 0 18px; }
  .auth-lede { font-size: 1rem; }
  .auth-stage { padding-top: 78px; }
  .auth-mascot, body[data-auth-view="account"] .auth-mascot { right: 18px; width: 96px; }
  .auth-hello, body[data-auth-view="account"] .auth-hello { right: 118px; top: 20px; font-size: 1.35rem; }
  .auth-panel { padding: 28px 18px 22px; border-radius: 20px; }
  .auth-panel::before { left: 22px; width: 92px; }
  .social-auth, .auth-form-grid--register { grid-template-columns: minmax(0, 1fr); }
  .auth-scene { min-height: 0; padding-bottom: 8px; }
  .auth-notes { width: 100%; rotate: -1deg; }
  .auth-photo, .auth-sticky { display: none; }
  .account-dashboard-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "badge" "identity" "actions"; }
  .account-avatar { width: 56px; height: 56px; font-size: 1.2rem; }
  .account-logout { flex: 1; justify-content: center; }
  .account-tools { grid-template-columns: minmax(0, 1fr); }
  .account-modal-card { padding: 26px 20px 22px; }
}
