/* Account presentation uses the shared Palinoia design tokens. */
@font-face { font-family:'Google Sans'; src:url('assets/fonts/GoogleSans-Medium.ttf') format('truetype'); font-style:normal; font-weight:500; font-display:swap; }
.account-page { min-height:100vh; min-height:100svh; padding:32px 20px; display:grid; place-items:center; background:var(--bg); color:var(--atelier-text); }
.account-card { width:100%; min-width:0; border-radius:28px; border:1px solid var(--line); background:var(--paper); box-shadow:0 18px 60px var(--atelier-shadow-color); }
.account-welcome { max-width:880px; display:grid; grid-template-columns:1.1fr 1fr; overflow:hidden; background:var(--surface-main); }
.account-welcome-top { display:flex; flex-direction:column; }
.account-welcome-copy { padding:0 30px; }
.account-brand { display:flex; align-items:center; width:175px; max-width:100%; }
.account-brand--welcome { width:225px; margin:20px auto 0; }
.account-brand .brand-lockup { width:100%; }
:root[data-theme=dark] .account-brand { background:var(--atelier-strip-paper); border-radius:var(--radius-sm); }
.account-welcome h1 { font-size:2.5rem; line-height:1.15; letter-spacing:-.035em; font-weight:550; margin:0 0 15px; }
.account-welcome-copy p { color:var(--muted); line-height:1.6; margin:0; }
.account-welcome-illustration { display:block; width:min(100%,370px); height:240px; object-fit:contain; margin:auto auto 0; }
.account-welcome-media { display:grid; position:relative; }
.account-welcome-media > :is(img,video) { grid-area:1/1; display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.account-welcome-poster { z-index:1; }
.account-welcome-media.has-video .account-welcome-poster { visibility:hidden; }
.account-welcome-media.is-unavailable video { display:none; }
@media (prefers-reduced-motion:reduce) {
  .account-welcome-media video { display:none; }
  .account-welcome-media .account-welcome-poster { visibility:visible; }
}
.account-welcome-bottom { display:flex; flex-direction:column; align-items:stretch; color:var(--atelier-text); }
.account-welcome-bottom > .account-service-note { margin-bottom:24px; }
.account-welcome-actions { display:grid; gap:12px; }
.account-button { min-height:52px; width:100%; padding:13px 20px; border-radius:999px; font-size:1rem; font-weight:600; line-height:1.45; text-align:center; }
.account-button--submit { background:var(--action-bg); color:var(--action-ink); border:1px solid var(--action-bg); }
.account-button--outline { background:transparent; color:var(--atelier-text); border:1px solid var(--atelier-control-border); }
.account-button:disabled { opacity:1; background:var(--surface-summary); color:var(--ink); border:1px solid var(--control-line); cursor:not-allowed; }
.account-button--danger { background:var(--paper); color:var(--ink); border:2px solid var(--ink); }
.account-text-link,.account-device-link,.account-back,.account-policy-links a { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 8px; background:transparent; color:var(--accent); font-size:.9rem; line-height:1.5; text-decoration:underline; text-underline-offset:4px; }
.account-device-link { align-self:center; }
.account-storage-note,.account-service-note { color:var(--muted); font-size:.85rem; line-height:1.65; margin:0; }
.account-storage-note { margin-top:18px; }
.account-policy-links { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin-top:12px; }
.account-form-card { max-width:490px; }
.account-form-header { padding:28px 30px 24px; background:var(--surface-summary); border-radius:28px 28px 0 0; }
.account-form-topbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-bottom:24px; }
.account-back { padding-left:0; }
.account-form-header h1 { font-size:2rem; line-height:1.2; font-weight:550; letter-spacing:-.025em; margin:0 0 12px; }
.account-form-header p { font-size:1rem; line-height:1.6; margin:0; color:var(--muted); overflow-wrap:anywhere; }
.account-form-body { padding:24px 30px 30px; }
.account-form-body > .account-service-note { margin-bottom:24px; }
.account-form-body > p:not([class]) { line-height:1.65; color:var(--muted); }
.account-field { margin-bottom:20px; }
.account-field label { display:block; font-size:.9rem; font-weight:600; margin-bottom:9px; }
.account-field input { display:block; width:100%; min-width:0; min-height:54px; padding:14px 16px; border:1px solid var(--control-line); border-radius:12px; background:var(--paper); color:var(--ink); font-size:1rem; line-height:1.5; }
.account-field input::placeholder { color:var(--muted); opacity:1; }
.account-password-wrap { position:relative; }
.account-password-wrap input { padding-right:80px; }
.account-password-toggle { position:absolute; top:3px; right:3px; min-height:48px; min-width:64px; padding:8px; border-radius:8px; background:transparent; color:var(--accent); font-size:.85rem; font-weight:600; }
.account-field-hint { font-size:.8rem; line-height:1.6; color:var(--muted); margin:8px 0 0; }
.account-recovery { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px; margin:-8px 0 20px; }
.account-form-status { background:var(--surface-summary); border:1px solid var(--line-tint); border-radius:10px; color:var(--ink); font-size:.9rem; line-height:1.65; margin:20px 0 0; padding:16px; }
.account-form-status[hidden] { display:none; }
.account-native-auth [hidden] { display:none; }
.account-confirmation-factors { margin:20px 0; padding:12px; border:1px solid var(--control-line); border-radius:12px; }
.account-confirmation-factors label { display:flex; align-items:center; gap:12px; min-height:48px; cursor:pointer; }
.account-confirmation-factors input { width:24px; height:24px; accent-color:var(--accent); }
.account-form-footer { padding-top:28px; text-align:center; }
.account-switch { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; column-gap:6px; font-size:.9rem; color:var(--muted); margin:0; line-height:1.5; }
.account-settings-actions { display:grid; gap:14px; margin-top:26px; }
.account-delete-scope { line-height:1.65; }
.account-confirmation { display:flex; align-items:flex-start; gap:14px; min-height:48px; padding:12px 0; margin-bottom:18px; line-height:1.6; cursor:pointer; }
.account-confirmation input { flex:0 0 auto; width:24px; height:24px; margin-top:2px; accent-color:var(--accent); }
.account-page :focus-visible { outline:3px solid var(--atelier-focus); outline-offset:3px; }
@media (max-width:520px) {
  .account-page { padding:0; display:block; }
  .account-card { max-width:none; border-radius:0; border:0; box-shadow:none; min-height:100vh; min-height:100svh; }
  .account-form-header { border-radius:0; padding-top:max(20px,env(safe-area-inset-top)); }
  .account-form-body,.account-welcome-actions { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
}
@media (max-width:359px) {
  .account-form-header,.account-form-body,.account-welcome-copy,.account-welcome-actions { padding-left:22px; padding-right:22px; }
  .account-welcome h1 { font-size:2.1rem; }
  .account-form-header h1 { font-size:1.8rem; }
  .account-form-topbar .account-brand { width:150px; }
}
@media (forced-colors:active) {
  .account-button,.account-field input,.account-card { border:1px solid ButtonText; }
  .account-welcome-illustration { display:none; }
}

/* Welcome agreement is body text beside the actions, including narrow screens. */
.account-welcome .account-brand--welcome { margin: 0 0 1.25rem; width: 190px; }
.account-welcome .account-welcome-agreement { font-size: var(--text-body); line-height: 1.5; color: var(--ink); margin: 1rem 0; }
.account-welcome-agreement a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.account-welcome .legal-access-links { font-size: var(--text-small); gap: .2rem .75rem; margin-block: 1rem 0; }
.account-age-note { color: var(--ink); font-size: var(--text-body); line-height: 1.5; margin: -.5rem 0 1rem; }
.account-web-google { margin: 0 0 1rem; }
.account-google-button { display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid #747775; background:#fff; color:#1f1f1f; font-family:'Google Sans',Arial,sans-serif; font-weight:500; font-size:1rem; padding:12px; }
.account-google-button img { flex:0 0 20px; width:20px; height:20px; background:#fff; object-fit:contain; }
.account-google-button span { min-width:0; }
:root[data-theme=dark] .account-google-button { border-color:#8e918f; background:#131314; color:#e3e3e3; }
.account-web-google [hidden] { display:none; }
@media (max-width:650px) {
 .account-welcome .account-welcome-top { padding: 1rem 1.5rem .75rem; gap: .5rem; }
 .account-welcome .account-brand--welcome { width: 155px; margin: 0 0 .25rem; }
 .account-welcome h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: .5rem; }
 .account-welcome-copy p { line-height: 1.5; }
 .account-welcome .account-welcome-illustration { height: 90px; max-height: 90px; margin-top: .5rem; }
 .account-welcome .account-welcome-bottom { padding: 1rem 1.5rem; }
 .account-welcome .account-welcome-actions { padding: 0; gap: .5rem; }
 .account-welcome .account-button { min-height: 48px; padding: .65rem .75rem; }
 .account-welcome .account-welcome-agreement { margin: .75rem 0 1rem; }
}
