/* Account entry and recovery keep the same edge-to-edge arcade identity. */
.auth-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-height: 660px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.auth-scene__story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 64px var(--gutter);
  background: #090d0e;
  color: #fff;
}
.auth-scene__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  animation: auth-scene-arrive 1.4s var(--ease-out) both;
}
.auth-scene__story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #080c0edf 0%, #080c0e70 66%, #080c0e25), linear-gradient(0deg, #080c0eea, transparent 36%);
}
.auth-scene__copy {
  position: relative;
  max-width: 760px;
  padding-bottom: 52px;
  animation: auth-copy-arrive .75s var(--ease-out) both;
}
.auth-scene__copy h2 {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(66px, 7.6vw, 148px);
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.auth-scene__copy h2 span { display: block; }
.auth-scene__copy h2 span + span { color: var(--accent); margin-top: .05em; }
.auth-scene__copy p { font-size: clamp(18px, 1.4vw, 24px); line-height: 1.55; max-width: 460px; margin: 28px 0 0; color: #e5eae4; }
.auth-scene__browse { position: absolute; left: var(--gutter); bottom: 42px; display: inline-flex; align-items: center; gap: 16px; min-height: 48px; color: #fff; font-size: 16px; font-weight: 650; }
.auth-scene__browse:hover { color: var(--accent); }
.auth-scene__browse .icon { transition: transform .25s var(--ease-out); }
.auth-scene__browse:hover .icon { transform: translateX(5px); }
.auth-scene__form { display: grid; align-items: center; min-width: 0; padding: 56px clamp(28px, 4.5vw, 100px); }
.auth-scene .form-card { width: 100%; max-width: 570px; min-width: 0; margin: 0 auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; animation: auth-copy-arrive .75s .08s var(--ease-out) both; }
.auth-scene .form-card h1 { font-family: var(--display-font); font-size: clamp(38px, 3.5vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.auth-scene .form-card > p { font-size: 17px; line-height: 1.65; margin: 0 0 28px; }
.auth-scene .form-group { margin-bottom: 22px; }
.auth-scene .form-group label { font-size: 15px; font-weight: 600; margin-bottom: 9px; }
.auth-scene .form-control { min-height: 56px; font-size: 17px; padding: 14px 15px; background: var(--panel); }
.auth-scene .checkbox-row { gap: 10px; }
.auth-scene .checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.auth-scene .checkbox-row label { font-size: 15px; }
.auth-scene .btn--full { min-height: 56px; font-size: 17px; white-space: normal; }
.auth-scene .form-links { align-items: center; flex-wrap: wrap; column-gap: 24px; row-gap: 6px; margin-top: 20px; font-size: 15px; }
.auth-scene .form-links a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-scene .form-group small { display: block; margin-top: 9px; font-size: 14px; line-height: 1.55; }
.auth-scene .form-error { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-scene .password-wrap button { top: 10px; min-height: 36px; font-size: 14px; }
.auth-scene__status { width: 64px; height: 64px; display: grid; place-items: center; background: var(--accent); color: #141c0c; border-radius: 50%; margin-bottom: 28px; }
.auth-scene__status .icon { width: 32px; height: 32px; }
.auth-scene__status--neutral { background: var(--panel-alt); color: var(--text); border: 1px solid var(--border); }
.auth-scene__return { margin-top: 22px; }
.auth-scene__return a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--link); }
.auth-scene__optional { margin: 0 0 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.auth-scene__optional summary { display: flex; align-items: center; gap: 6px; min-height: 54px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.auth-scene__optional summary::-webkit-details-marker { display: none; }
.auth-scene__optional summary span { color: var(--muted); font-weight: 400; }
.auth-scene__optional summary .icon { margin-left: auto; transition: transform .2s var(--ease-out); }
.auth-scene__optional[open] summary .icon { transform: rotate(45deg); }
.auth-scene__optional summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.auth-scene__optional-body { padding: 0 0 20px; }
.auth-scene__optional-body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.auth-scene__optional-body .form-group { margin-bottom: 0; }

.error-scene { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(550px, 42vw, 780px); padding: 76px var(--gutter); background: #090d0e; color: #fff; border-bottom: 1px solid var(--border); }
.error-scene__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: auth-scene-arrive 1.4s var(--ease-out) both; }
.error-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080c0ee8, #080c0e55 68%, transparent); }
.error-scene__copy { width: 75%; animation: auth-copy-arrive .75s var(--ease-out) both; }
.error-scene h1 { font-family: var(--display-font); font-size: clamp(76px, 10.5vw, 184px); font-weight: 800; line-height: .89; letter-spacing: -.035em; margin: 0; text-transform: uppercase; }
.error-scene h1 span { display: block; color: var(--accent); margin-top: .07em; }
.error-scene p { max-width: 510px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.65; margin: 30px 0; color: #e5eae4; }
.error-scene__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.error-scene__actions .btn { min-height: 56px; font-size: 17px; }
.error-scene__actions .btn--outline { background: #0c11139c; color: #fff; border-color: #c6d0c270; }
.error-scene__actions .btn--outline:hover { background: #2a332a; border-color: #fff; }

@keyframes auth-copy-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes auth-scene-arrive { from { transform: scale(1.04); } to { transform: scale(1); } }
@media (max-width: 1100px) and (min-width: 761px) {
  .auth-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-scene__story { padding-inline: 28px; }
  .auth-scene__copy h2 { font-size: clamp(62px, 7.6vw, 86px); }
  .auth-scene__form { padding: 48px 28px; }
  .auth-scene__browse { left: 28px; }
}
@media (max-width: 760px) {
  .auth-scene { display: block; min-height: 0; }
  .auth-scene__story { min-height: 230px; padding: 28px var(--gutter); justify-content: center; }
  .auth-scene__image { object-position: 82% 48%; }
  .auth-scene__story::after { background: linear-gradient(90deg, #080c0ee8 0%, #080c0e85 65%, #080c0e25); }
  .auth-scene__copy { padding-bottom: 0; max-width: 520px; }
  .auth-scene__copy h2 { font-size: clamp(48px, 12.5vw, 76px); line-height: .95; }
  .auth-scene__copy p { max-width: 320px; font-size: 15px; line-height: 1.55; margin-top: 16px; }
  .auth-scene__browse { display: none; }
  .auth-scene__form { padding: 34px var(--gutter) 42px; }
  .auth-scene .form-card { max-width: 560px; }
  .auth-scene .form-card h1 { font-size: 38px; margin-bottom: 14px; }
  .auth-scene .form-card > p { font-size: 16px; margin-bottom: 25px; }
  .auth-scene .form-control { min-height: 54px; font-size: 16px; }
  .auth-scene .btn--full { min-height: 54px; font-size: 16px; }
  .auth-scene .form-group { margin-bottom: 20px; }
  .auth-scene .form-links { font-size: 14px; gap: 4px 18px; }
  .auth-scene__status { width: 56px; height: 56px; margin-bottom: 22px; }
  .error-scene { min-height: 510px; padding: 44px var(--gutter); }
  .error-scene__image { object-position: 82% center; }
  .error-scene::after { background: linear-gradient(90deg, #080c0eec, #080c0e85 75%, #080c0e30); }
  .error-scene__copy { width: 100%; }
  .error-scene h1 { font-size: clamp(64px, 17vw, 114px); line-height: .93; }
  .error-scene p { font-size: 17px; max-width: 340px; margin-block: 24px; }
  .error-scene__actions { gap: 12px; }
  .error-scene__actions .btn { font-size: 15px; min-height: 52px; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-scene *, .error-scene * { animation: none !important; transition: none !important; }
}
