.account-shell { margin: 0; min-height: 100vh; }
.account-shell * { box-sizing: border-box; }
.account-shell a { color: inherit; }
.account-shell button,.account-shell input { font: inherit; }
.account-shell .account-topbar { width: min(calc(100% - 96px),1344px); min-height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-shell .brand { display: inline-flex; align-items: center; text-decoration: none; }
.account-shell .account-return { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--pp-muted); font-size: 15px; }
.account-shell .account-return:hover { color: #fff; }
.account-shell .account-layout { width: min(calc(100% - 96px),1120px); min-height: 650px; margin: auto; display: grid; grid-template-columns: minmax(0,430px) minmax(0,1fr); gap: 64px; align-items: center; padding-block: 24px 48px; }
.account-shell .account-copy { min-width: 0; padding-block: 24px; }
.account-shell .account-eyebrow { display: block; color: var(--pp-gold); font-size: 14px; margin-bottom: 16px; }
.account-shell h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; }
.account-shell .account-intro { margin: 0 0 32px; color: var(--pp-muted); font-size: var(--ui-text-body); line-height: 1.6; }
.account-shell .account-field { display: grid; gap: 10px; margin-bottom: 24px; }
.account-shell .account-field label { font-size: var(--ui-text-label); font-weight: 500; }
.account-shell .account-field input { width: 100%; min-width: 0; height: 54px; padding: 12px 16px; border: 1px solid #535c66; border-radius: 8px; background: var(--pp-panel); box-shadow: inset 0 2px 4px #0003; color: var(--pp-text); font-size: 16px; }
.account-shell .account-field input:focus { outline: 2px solid var(--pp-blue); outline-offset: 3px; border-color: var(--pp-blue); }
.account-shell .account-field input[aria-invalid='true'] { border-color: var(--pp-red); }
.account-shell .account-field small { color: var(--pp-muted); }
.account-shell .password-entry { position: relative; }
.account-shell .password-entry input { padding-right: 60px; }
.account-shell .password-toggle { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; color: var(--pp-muted); border: 0; border-radius: 5px; background: transparent; }
.account-shell .password-toggle:hover,.account-shell .password-toggle[aria-pressed='true'] { background: #374047; color: #fff; }
.account-shell form > .material-button { width: 100%; min-height: 54px; margin-top: 8px; justify-content: space-between; }
.account-shell .account-error { padding: 14px 16px; border: 1px solid #91676a; border-radius: 6px; background: #38272b; color: #ffd3d3; font-size: 15px; overflow-wrap: anywhere; }
.account-shell .account-alternate { margin: 28px 0 0; color: var(--pp-muted); font-size: 15px; }
.account-shell .account-alternate a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; color: var(--pp-text); text-underline-offset: 5px; }
.account-shell .account-art { position: relative; align-self: center; min-width: 0; margin: 0; }
.account-shell .account-art img { display: block; width: 100%; height: auto; object-fit: contain; mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(0deg,transparent,#000 8%,#000 98%,transparent); mask-composite: intersect; }
.account-shell .account-art figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 48px 28px 24px; text-align: center; background: linear-gradient(transparent,#000c); text-shadow: 0 2px 12px #000; }
.account-shell .account-art figcaption span { font: 500 28px/1.2 Outfit,sans-serif; }
.account-shell .account-details { display: grid; gap: 24px; padding: 24px 0; margin: 0 0 24px; border-block: 1px solid var(--pp-line); }
.account-shell .account-details dt { font-size: 14px; color: var(--pp-muted); margin-bottom: 8px; }
.account-shell .account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-shell .account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1180px) {
  .account-shell .account-layout { width: calc(100% - 80px); gap: 32px; }
}
@media (max-width: 920px) {
  .account-shell .account-topbar { width: calc(100% - 40px); }
  .account-shell .account-layout { width: min(calc(100% - 40px),460px); grid-template-columns: minmax(0,1fr); min-height: 0; gap: 0; padding: 16px 0 0; }
  .account-shell h1 { font-size: var(--ui-text-page); }
  .account-shell .account-intro { margin-bottom: 28px; }
  .account-shell .account-art { margin: 16px 0 0; }
  .account-shell .account-art figcaption { padding-inline: 16px; }
  .account-shell .account-art figcaption span { font-size: 24px; }
  .account-shell .account-return span { display: none; }
  .account-shell .account-return { width: 44px; justify-content: center; }
}

/* The landscape is decorative; the opaque glass keeps the form readable even without blur. */
.auth-shell {
  --auth-accent: #b5ded1;
  --auth-muted: #b9c2c1;
  --ui-action-fill: #d5e6df;
  --ui-action-edge: #e4f1eb;
  --ui-action-text: #10251d;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #0d1413;
}
.auth-shell .auth-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0d1413; }
.auth-shell .auth-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth-shell .auth-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#060a09a8 0%,#060a0959 22%,#060a0959 72%,#060a09cf 100%); }
.auth-shell .account-topbar { flex: 0 0 auto; min-height: 80px; margin-block: 0; }
.auth-shell .brand { color: #f3f6f5; }
.auth-shell .account-return { color: #d0d6d4; }
.auth-shell .account-layout { flex: 1 0 auto; display: grid; place-items: center; grid-template-columns: minmax(0,1fr); width: min(calc(100% - 48px),472px); min-height: 0; gap: 0; padding: 32px 0; margin: 0 auto; }
.auth-shell .account-copy { width: 100%; padding: 32px 40px; border: 1px solid #b6c6bf40; border-radius: 8px; background: #0d1211f2; box-shadow: inset 0 1px #ffffff10,0 16px 48px #0005; backdrop-filter: blur(12px); }
.auth-shell .auth-mode-nav { display: flex; gap: 32px; margin-bottom: 32px; }
.auth-shell .auth-mode-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 2px solid #424c49; color: var(--auth-muted); font-size: 16px; line-height: 1.4; font-weight: 500; text-decoration: none; transition: color .18s,border-color .18s; }
.auth-shell .auth-mode-nav a:hover { color: #fff; border-color: #a9b9b3; }
.auth-shell .auth-mode-nav a[aria-current='page'] { color: var(--auth-accent); border-color: var(--auth-accent); }
.auth-shell h1 { font-size: 36px; font-weight: 600; line-height: 1.2; margin-bottom: 8px; text-wrap: pretty; }
.auth-shell .account-intro { margin-bottom: 28px; color: var(--auth-muted); }
.auth-shell .account-field { gap: 8px; margin-bottom: 24px; }
.auth-shell .account-field label { font-size: 16px; line-height: 1.4; color: #dee4e1; }
.auth-shell .account-field input { height: 52px; border: 1px solid #64716c; border-radius: 6px; background: #1b2321; box-shadow: inset 0 1px #ffffff08; color: #f0f4f2; transition: border-color .18s,background .18s; }
.auth-shell .account-field input::placeholder { color: #a4afab; }
.auth-shell .account-field input:hover { border-color: #a2b0a9; }
.auth-shell .account-field input:focus { outline: 2px solid var(--auth-accent); outline-offset: 3px; border-color: #99c2b5; background: #1e2925; }
.auth-shell .account-field input[aria-invalid='true'] { border-color: var(--pp-red); outline-color: var(--pp-red); }
.auth-shell .account-field small { font-size: 14px; line-height: 1.5; color: var(--auth-muted); }
.auth-shell .account-remember { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; margin: -8px 0 16px; color: #dee4e1; font-size: 16px; line-height: 1.5; cursor: pointer; }
.auth-shell .account-remember input { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--auth-accent); cursor: pointer; }
.auth-shell .account-remember input:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
.auth-shell .password-toggle { top: 4px; right: 4px; color: #b9c9c1; }
.auth-shell .password-toggle:focus-visible { outline-offset: -3px; }
.auth-shell .password-toggle:hover,.auth-shell .password-toggle[aria-pressed='true'] { background: #ffffff0d; color: var(--auth-accent); }
.auth-shell #player-auth-form > .material-button { min-height: 52px; margin-top: 4px; gap: 16px; justify-content: center; border-radius: 6px; box-shadow: inset 0 1px #fff7,0 3px 10px #0004; transition: background .18s,box-shadow .18s,transform .18s; }
.auth-shell #player-auth-form > .material-button:hover:not(:disabled) { background: #e4f0eb; border-color: #e4f1eb; box-shadow: inset 0 1px #fff9,0 4px 14px #0005; }
.auth-shell #player-auth-form > .material-button:disabled { opacity: .65; cursor: wait; }
.auth-shell .account-alternate { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 16px; font-size: 14px; color: var(--auth-muted); }
.auth-shell .account-alternate a { margin: 0; color: var(--auth-accent); text-decoration-thickness: 1px; }
.auth-shell .account-error { margin: 0 0 16px; font-size: 14px; }
.auth-shell .auth-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; flex: 0 0 auto; width: min(calc(100% - 96px),1344px); min-height: 80px; margin: 0 auto; padding: 16px 0; color: #c0c9c5; font-size: 14px; }
.auth-shell .auth-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.auth-shell .auth-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.auth-shell .auth-footer a:hover { color: var(--auth-accent); text-decoration: underline; text-underline-offset: 4px; }
.auth-shell :is(a,button):focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
@media (max-height: 820px) and (min-width: 601px) {
  .auth-shell .account-layout { padding-block: 16px; }
  .auth-shell .account-copy { padding-block: 24px; }
  .auth-shell .auth-mode-nav { margin-bottom: 24px; }
  .auth-shell .account-intro { margin-bottom: 24px; }
  .auth-shell .account-field { margin-bottom: 20px; }
  .auth-shell .account-alternate { margin-top: 8px; }
}
@media (max-width: 600px) {
  .auth-shell .account-topbar { width: calc(100% - 32px); min-height: 72px; }
  .auth-shell .account-layout { width: min(calc(100% - 32px),440px); padding-block: 20px; }
  .auth-shell .account-copy { padding: 24px; }
  .auth-shell .auth-mode-nav { gap: 24px; margin-bottom: 24px; }
  .auth-shell h1 { font-size: 32px; }
  .auth-shell .account-intro { margin-bottom: 24px; }
  .auth-shell .account-field { margin-bottom: 20px; }
  .auth-shell .auth-footer { width: calc(100% - 40px); min-height: 72px; padding: 12px 0; }
  .auth-shell .auth-footer nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell :is(input,button,a),.auth-shell #player-auth-form > .material-button { transition: none; }
}
