:root {
  --bg: #140824;
  --text: #eef1ff;
  --text-dim: #d4b8e8;
  --accent: #00c2ff;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
#root { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }
.auth-shell { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.auth-shell::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url('../wildblast-hd/home-mobile.webp') center / cover no-repeat; }
.auth-shell > * { position: relative; z-index: 1; }
.auth-page { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.auth-logo img { display: block; width: auto; height: 84px; filter: drop-shadow(0 6px 18px #0009); }
.auth-card { width: 100%; max-width: 420px; padding: 24px; background: rgba(14,18,34,.82); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; box-shadow: 0 24px 60px #00000073; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .muted { color: var(--text-dim); font-size: .95rem; margin-bottom: 24px; }
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.input { width: 100%; min-width: 0; border: 1px solid rgba(255,122,217,.2); border-radius: 10px; padding: 13px 14px; background: rgba(28,10,46,.72); color: var(--text); font-size: 17px; outline: none; transition: border-color .15s; }
.input::placeholder { color: #757575; opacity: 1; }
.input:focus { border-color: #e14dff; }
.input[aria-invalid="true"] { border-color: #ff7a92; }
.input-password { position: relative; }
.input-password .input { padding-right: 46px; }
.phone-field-row { display: flex; width: 100%; align-items: stretch; gap: 8px; }
.phone-country-input { position: relative; flex: 1; min-width: 0; }
.phone-country-prefix { position: absolute; top: 50%; left: 14px; z-index: 1; transform: translateY(-50%); color: var(--text); font-size: 17px; font-weight: 700; pointer-events: none; }
.phone-country-input.has-value .input { padding-left: 54px; }
.input-eye { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text-dim); cursor: pointer; transition: color .15s; }
.input-eye:hover { color: var(--text); }
.eye-slash { display: none; }
.input-eye[aria-pressed="true"] .eye-slash { display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border: 0; border-radius: 12px; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#e14dff,#9b4dff); box-shadow: 0 8px 24px rgba(200,75,255,.4); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-block { width: 100%; }
.auth-switch { margin-top: 18px; color: var(--text-dim); text-align: center; font-size: .9rem; }
.auth-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #ff547070; border-radius: 10px; background: #ff547014; color: #ffd0d8; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-alert ul { padding-left: 18px; }
.auth-alert--success { border-color: #00e5a866; color: #b0f5d9; background: #00e5a810; }
a:focus-visible, button:focus-visible { outline: 2px solid #00c2ff; outline-offset: 4px; }
@media (min-aspect-ratio: 5/8) and (max-aspect-ratio: 1/1) { .auth-shell::before { background-image: url('../wildblast-hd/home-tablet.webp'); } }
@media (min-width: 1024px), (min-aspect-ratio: 1/1) { .auth-shell::before { background-image: url('../wildblast-hd/home-desktop.webp'); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Wild Blast skin — preserves the Wild Blast card and form dimensions. */
:root{--bg:#2a1508;--text:#fff8ed;--text-dim:#e5cba6;--accent:#ffc35e}
body{background-color:#2a1508}
.auth-shell::before{background:url('../wildblast-home/background.jpg') center/cover no-repeat;filter:brightness(.64)}
.auth-shell::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#180d0699,#2a140960 40%,#190b04c4)}
.auth-page{z-index:1;position:relative}
.auth-card{background:rgba(47,25,12,.94);border:1px solid rgba(255,197,102,.52);box-shadow:0 0 0 4px rgba(130,68,22,.24),0 24px 60px rgba(24,9,2,.75);backdrop-filter:blur(8px)}
.auth-card h1{color:#ffda82;text-shadow:0 2px 0 #8f420b}
.auth-card .muted{color:#edd2af}
.auth-logo{display:block;width:126px;height:84px;filter:drop-shadow(0 8px 12px #1a0a02)}
.auth-logo img{display:block;width:126px;height:84px;object-fit:contain;filter:none}
.input{border-color:rgba(232,157,65,.48);background:#29170e;color:#fff9ef}
.input::placeholder{color:#c4a887}
.input:focus{border-color:#ffbd54;box-shadow:0 0 0 3px #ffc15d24}
.input-eye{color:#edca9a}
.btn-primary{background:linear-gradient(180deg,#a9ef3b,#6ed208 55%,#4dab00);color:#fff;text-shadow:0 2px 0 #347d00;box-shadow:0 4px 0 #2b7507,0 10px 24px #62bb1048;border:1px solid #e0ff86}
.btn-primary:hover{box-shadow:0 5px 0 #2b7507,0 13px 26px #62bb1066}
.auth-switch a{color:#ffd275;font-weight:700}
.auth-alert--success{border-color:#91d74499;color:#e5ffc1;background:#6fa91d25}
a:focus-visible,button:focus-visible{outline-color:#ffd275}
@media(min-aspect-ratio:5/8) and (max-aspect-ratio:1/1){.auth-shell::before{background-image:url('../wildblast-home/background.jpg')}}
@media(min-width:1024px),(min-aspect-ratio:1/1){.auth-shell::before{background-image:url('../wildblast-home/background.jpg')}}
@media(min-width:1100px){.auth-shell::after{background-image:url('../wildblast-home/mascot.png');background-size:auto min(77vh,630px);background-position:calc(50% + 435px) bottom;background-repeat:no-repeat}}
