/* Sign-in / create-account screen (js/authui.js); shares the title screen's #title backdrop and .ti-card layout */
.au-card { gap: 14px; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(5, 12, 32, .55); padding: 5px; border-radius: 14px; border: 2px solid #2d5bb3; }
.au-tab { min-height: 44px; border: 0; border-radius: 10px; background: none; color: #c8e7ff; font: 800 16px Nunito, system-ui, sans-serif; cursor: pointer; }
.au-tab.on { background: linear-gradient(#ffd85e, #f3a51e); color: #3a2400; }
.au-form { text-align: left; }
.au-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 14px; color: #dbe9ff; }
.au-form input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 2px solid #2d5bb3; background: #0a1838; color: #fff; font: 700 16px Nunito, system-ui, sans-serif; }
.au-form input:focus { outline: none; border-color: #ffcb05; box-shadow: 0 0 0 3px rgba(255, 203, 5, .25); }
.au-opt { font-weight: 600; color: #8fa7d6; font-size: 12px; }
.au-hint { margin: 0; font-size: 12px; color: #8fa7d6; }
.au-error { margin: 0; min-height: 18px; color: #ff8a8a; font-weight: 800; font-size: 14px; }
.au-offline { background: none; border: 0; color: #9fc2ff; font: 700 14px Nunito, system-ui, sans-serif; text-decoration: underline; cursor: pointer; min-height: 44px; }
.ti-start[disabled] { opacity: .65; cursor: progress; }
.au-name { float: right; font-size: 12px; font-weight: 900; }
.au-name.ok { color: #7ff0a0; }
.au-name.taken { color: #ff8a8a; }
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; margin-top: -4px; }
.au-meter i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); }
.au-meter span { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: #8fa7d6; }
.au-meter[data-s="1"] i:nth-child(-n+1) { background: #ff6b6b; }
.au-meter[data-s="2"] i:nth-child(-n+2) { background: #ffb547; }
.au-meter[data-s="3"] i:nth-child(-n+3) { background: #7fd36b; }
.au-meter[data-s="4"] i:nth-child(-n+4) { background: #3ccf7e; }
/* the terms tick box: one neat row, a 22px box centred on its line of text, the whole label tappable */
.au-form label.au-terms { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: 14px; line-height: 1.35; cursor: pointer; }
.au-form label.au-terms input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; padding: 0; border: 0; border-radius: 4px; box-shadow: none; accent-color: #ffd23f; cursor: pointer; }
.au-form label.au-terms span { flex: 1; min-width: 0; }
.au-terms a { color: #ffd23f; }
.au-conn { margin: 0; color: #c8d6ff; font-weight: 700; line-height: 1.5; text-align: center; }
/* e-mail sign-up: password tools (suggest / show) and the live rules checklist */
.au-pwtools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: -6px; }
.au-link { background: none; border: 0; padding: 6px 0; min-height: 32px; color: #ffd23f; font: 800 13px Nunito, system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.au-link:focus-visible { outline: 2px solid #ffcb05; outline-offset: 2px; border-radius: 4px; }
.au-rules { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; font-weight: 800; color: #8fa7d6; }
.au-rules li { display: flex; align-items: center; gap: 5px; }
.au-rules li span { width: 12px; text-align: center; }
.au-rules li.ok { color: #7ff0a0; }
.au-note { margin: 0; font-size: 12px; font-weight: 700; color: #c8e7ff; }
.au-note:empty { display: none; }
/* forgot password (Sign in tab) */
.au-forgot { align-self: flex-end; margin-top: -8px; }
.au-lead { margin: 0; color: #c8d6ff; font-weight: 700; font-size: 14px; line-height: 1.45; }
.au-sent { margin: 0; padding: 14px; border-radius: 12px; background: rgba(5, 12, 32, .55); border: 2px solid #2d5bb3; color: #dbe9ff; font-weight: 800; line-height: 1.5; text-align: center; }

/* ---------- the sign-in screens' own look: the website's (dark navy, Primal Groudon in Ember Crater, fire glow, embers) ---------- */
#title.au-screen { background: #04060f; overflow: hidden; isolation: isolate; align-content: center; padding: 20px 0; overflow-y: auto; }
#title.au-screen::before, #title.au-screen::after { display: none; }
.au-bg { position: fixed; inset: 0; z-index: -3; background: url(/pokemon-town-demo/site/media/auth-groudon.webp) 50% 6% / cover no-repeat; animation: au-in 2s cubic-bezier(.2, .7, .2, 1) both; }
@media (min-width: 701px) { .au-bg { background-image: url(/pokemon-town-demo/site/media/auth-groudon-wide.webp); background-position: 50% 30%; } }
.au-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 15, .55) 0%, rgba(4, 6, 15, .25) 30%, rgba(4, 6, 15, .75) 62%, #04060f 100%); }
@keyframes au-in { from { transform: scale(1.12); filter: brightness(.35); } to { transform: none; filter: none; } }
.au-glow { position: fixed; z-index: -2; left: 50%; top: 28%; width: 130vmax; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 180, 70, .35), rgba(255, 90, 30, .14) 30%, transparent 55%); animation: au-glow 2s ease-in-out infinite alternate; }
@keyframes au-glow { from { opacity: .7; } to { opacity: 1; transform: translate(-50%, -52%) scale(1.05); } }
.au-embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.au-embers i { position: absolute; left: var(--x); bottom: -20px; width: var(--s); height: var(--s); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #fffbea 0 16%, #ffd36a 30%, rgba(255, 140, 40, .75) 46%, rgba(255, 80, 20, .25) 62%, transparent 72%);
  box-shadow: 0 0 calc(var(--s) * 2) rgba(255, 140, 40, .6); animation: au-ember var(--d) cubic-bezier(.3, .2, .6, 1) var(--w) infinite; }
@keyframes au-ember { 0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; } 8% { opacity: 1; }
  100% { transform: translate3d(var(--dx), calc(var(--dy) * 1.4 - 20vh), 0) scale(.25); opacity: 0; } }

/* the card: glass over the art, the logo on top */
#title.au-screen .au-card { position: relative; padding: 18px 18px 22px; border-radius: 24px; background: rgba(7, 10, 28, .72); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); margin-top: 22vh; }
@media (min-width: 701px) { #title.au-screen .au-card { margin-top: 0; } }
#title.au-screen .ti-logo { margin: -64px 0 0; }
#title.au-screen .ti-logo .tc-logo { width: min(330px, 86vw); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }
#title.au-screen .ti-logo small { color: #ffd23f; letter-spacing: 1.5px; }
.au-h { margin: 0; font: 400 24px/1.1 'Lilita One', Nunito, sans-serif; color: #fff; }
#title.au-screen .au-tabs { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); }
#title.au-screen .au-tab { color: rgba(255, 255, 255, .7); }
#title.au-screen .au-tab.on { background: #fff; color: #0a0f24; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
#title.au-screen .au-form input { border: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 6, 15, .7); }
#title.au-screen .au-form input:focus { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255, 210, 63, .25); }
#title.au-screen .ti-start { min-height: 54px; border: 0; border-radius: 16px; font: 900 18px Nunito, sans-serif; color: #2b1800; cursor: pointer;
  background: linear-gradient(180deg, #ffe066, #ff9f1c); box-shadow: 0 10px 30px rgba(255, 159, 28, .4); animation: au-pulse 2.4s ease-in-out infinite; }
#title.au-screen .ti-start:disabled { filter: grayscale(.3) brightness(.85); animation: none; }
@keyframes au-pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 210, 63, 0), 0 10px 40px rgba(255, 159, 28, .6); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .45), 0 10px 30px rgba(255, 159, 28, .4); } }
#title.au-screen.au-seen .au-bg { animation: none; }
@media (max-width: 700px) { .au-bg { background-size: 100% auto; background-position: 50% 0; background-color: #1a0f0c; } }

/* volcano: a lava glow along the bottom, a wall of flames, lava bursts arcing up, fast sparks (all CSS) */
.au-lava-glow { position: fixed; left: 0; right: 0; bottom: 0; height: 45vh; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255, 70, 20, .55), rgba(200, 30, 10, .22) 45%, transparent 75%); animation: au-heat 1.6s ease-in-out infinite alternate; }
@keyframes au-heat { from { opacity: .65; } to { opacity: 1; transform: scaleY(1.06); transform-origin: bottom; } }
.au-flames { position: fixed; left: 0; right: 0; bottom: 0; height: 170px; z-index: -1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; filter: blur(3px); }
.au-flames i { position: absolute; bottom: -24px; left: var(--x); width: 13%; height: var(--h); border-radius: 50% 50% 35% 35% / 70% 70% 30% 30%; transform-origin: 50% 100%;
  background: radial-gradient(60% 75% at 50% 100%, #fff3b0 0%, #ffb52e 28%, rgba(255, 90, 20, .8) 52%, rgba(200, 30, 10, .35) 72%, transparent 82%);
  animation: au-flame var(--d) ease-in-out var(--w) infinite alternate; }
@keyframes au-flame { 0% { transform: scale(1, .8) skewX(-4deg); opacity: .75; } 50% { transform: scale(.9, 1.12) skewX(3deg); opacity: 1; } 100% { transform: scale(1.08, .92) skewX(-2deg); opacity: .85; } }
.au-lava { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.au-lava i { position: absolute; left: var(--x); bottom: 0; width: var(--s); height: var(--s); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #fffbe0 0 22%, #ffc038 40%, #ff5a14 62%, transparent 74%); box-shadow: 0 0 18px 6px rgba(255, 90, 20, .55);
  animation: au-burst var(--d) cubic-bezier(.25, .6, .45, 1) var(--w) infinite; }
.au-lava i::after { content: ''; position: absolute; left: 50%; top: 60%; width: 40%; height: 260%; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 150, 40, .7), transparent); filter: blur(2px); }
@keyframes au-burst { 0% { transform: translate3d(0, 20px, 0) scale(.4); opacity: 0; } 8% { opacity: 1; }
  55% { transform: translate3d(calc(var(--dx) * .6), calc(var(--h) * -1), 0) scale(1); opacity: 1; }
  100% { transform: translate3d(var(--dx), calc(var(--h) * -.35), 0) scale(.5); opacity: 0; } }
.au-embers b { position: absolute; left: var(--x); bottom: -10px; width: 2px; height: 26px; border-radius: 2px; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, #ffe9a0 40%, #ff8a2a); box-shadow: 0 0 6px rgba(255, 150, 40, .8);
  animation: au-spark var(--d) linear var(--w) infinite; }
@keyframes au-spark { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate3d(var(--dx), -85vh, 0); opacity: 0; } }

/* the character list on the same backdrop: dark glass cards, gold for the last played */
#title.au-screen .ti-chars { margin-top: 18vh; }
@media (min-width: 701px) { #title.au-screen .ti-chars { margin-top: 0; } }
#title.au-screen .chs-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
#title.au-screen .chs-card:hover, #title.au-screen .chs-card:focus-visible { background: rgba(255, 255, 255, .1); border-color: #ffd23f; }
#title.au-screen .chs-card.chs-last { background: linear-gradient(180deg, rgba(255, 159, 28, .14), rgba(255, 255, 255, .04)); border-color: rgba(255, 210, 63, .8); box-shadow: 0 0 24px rgba(255, 140, 30, .25); }
#title.au-screen .chs-ava { background: radial-gradient(circle at 50% 35%, #5a2a1a, #1a0f14); }
#title.au-screen .chs-info small { color: #c9c3d8; }
#title.au-screen .chs-party i { background: rgba(255, 255, 255, .08); }
#title.au-screen .chs-del { background: rgba(4, 6, 15, .5); border-color: rgba(255, 255, 255, .14); }
#title.au-screen .chs-new { border: 1px dashed rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .05); color: #fff; }
#title.au-screen .chs-account { color: #c9c3d8; }

/* the character list's backdrop: no art, near-black navy warming at the bottom (the fire: brand.css .fl-floor) */
#title.au-screen .au-bg.el-plain { background: radial-gradient(120% 60% at 50% 100%, rgba(120, 36, 8, .5), transparent 60%), linear-gradient(180deg, #070a18 0%, #05060d 70%, #0d0705 100%); animation: none; }
#title.au-screen .au-bg.el-plain::after { display: none; }
#title.au-screen .ti-chars { margin-top: 0; }
