:root {
  color-scheme: light;
  --ink: #261243;
  --muted: #665574;
  --paper: #fff8ff;
  --line: #e2cbe9;
  --pink: #f64487;
  --gold: #ffcb54;
  --aqua: #a5f4f4;
  --dark: #22143a;
  --display: "Arial Black", "Segoe UI Black", "Segoe UI", sans-serif;
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 4vw, 2.75rem); letter-spacing: -.04em; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #275db6; outline-offset: 4px; }
header :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--aqua); }
section[id] { scroll-margin-top: 5rem; }
.wrap { width: min(100% - 3rem, 1160px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .6rem 1rem; background: white; }

.site-head { position: fixed; z-index: 10; inset: 0 0 auto; color: white; pointer-events: none; }
.site-head::before {
  content: ""; position: absolute; inset: 0 0 -2rem;
  background: linear-gradient(180deg, #25104099 0, #25104042 52%, transparent);
  transition: opacity .22s ease;
}
.head-inner {
  position: relative; min-height: 64px; width: min(100% - 3rem, 1160px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  border: 1px solid transparent; border-radius: 0; padding: 0 .55rem;
  pointer-events: auto;
  transition: background .22s ease, border-color .22s ease, border-radius .22s ease, box-shadow .22s ease, transform .22s ease;
}
.site-head.is-scrolled::before { opacity: 0; }
.site-head.is-scrolled .head-inner {
  min-height: 52px; max-width: 930px; transform: translateY(.55rem); padding-inline: .7rem;
  border-color: #ffffff50; border-radius: 1.2rem; background: #2b1745e8;
  box-shadow: 0 10px 28px #30134c31, inset 0 1px #ffffff20;
}
@supports (backdrop-filter: blur(12px)) {
  .site-head.is-scrolled .head-inner { background: #2b1745c4; backdrop-filter: blur(19px) saturate(1.55); }
}
.brand { width: 75px; min-height: 44px; display: grid; align-items: center; justify-self: start; }
.site-head.is-scrolled .brand { width: 62px; }
.brand img { height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.2rem, 2vw, 1.75rem); }
.site-nav a {
  display: grid; place-items: center; min-height: 44px; padding-inline: .48rem;
  font-weight: 750; font-size: .95rem; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 4px #251040;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ffe5a0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .42em; }
.head-play { justify-self: end; }

.btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .52rem .95rem;
  border: 1px solid transparent; border-radius: .7rem; font-weight: 850; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: nowrap;
}
.btn-primary { color: #2b173a; background: linear-gradient(180deg, #ffdd7e, var(--gold)); box-shadow: 0 3px #b96a29; }
.btn-secondary { color: #25153b; background: linear-gradient(180deg, #e2ffff, var(--aqua)); box-shadow: 0 3px #479baa; }
.btn[href]:hover { filter: brightness(1.08); }
.btn:disabled { color: #655470; border-color: #e3d3ea; background: #f4eaf8; box-shadow: none; cursor: default; }

.hero { height: max(490px, 51vw); position: relative; isolation: isolate; overflow: hidden; background: #cd7bc0; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 61%; }
.hero-art--chopper img { object-position: center 54%; }
.hero-mark { position: absolute; top: 33%; left: max(5vw, calc((100vw - 1180px) / 2)); width: clamp(230px, 31vw, 485px); height: auto; filter: drop-shadow(0 8px 18px #2d14465e); }
.hero:has(.hero-art--chopper:not([hidden])) .hero-mark { display: none; }
.hero-controls {
  position: absolute; right: max(1.5rem, calc((100% - 1160px) / 2)); bottom: 1.5rem; display: flex; gap: .1rem;
  align-items: center; padding-inline: .22rem; color: white; background: #321746e0;
  border: 1px solid #ffffff55; border-radius: 2rem; backdrop-filter: blur(12px);
}
.hero-controls button { min-height: 44px; border: 0; border-radius: 2rem; background: transparent; color: inherit; cursor: pointer; }
.hero-controls button:hover { background: #ffffff22; }
.banner-dot { display: grid; place-items: center; width: 44px; }
.banner-dot::before { content: ""; width: .6rem; height: .6rem; border: 2px solid #fff3ff; border-radius: 50%; }
.banner-dot[aria-pressed="true"]::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 8px #ffc750b0; }

.play-section { padding-block: clamp(2rem, 4vw, 3.7rem); background: radial-gradient(ellipse at 15% 0, #ffd9ea, transparent 67%), var(--paper); }
.play-section h2 { margin-bottom: 1rem; }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.play-card {
  min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  padding: 1rem; border: 1px solid #e7b6d5; border-radius: 1.05rem;
  background: linear-gradient(135deg, #fff0f8, #fff 72%);
  box-shadow: 0 5px #ebcbe6;
}
.play-card--launcher { border-color: #bbdce5; background: linear-gradient(135deg, #eafcfd, #fff 72%); box-shadow: 0 5px #cbe6ed; }
.play-copy p { margin-top: .27rem; color: var(--muted); font-size: .94rem; }
.platform-future { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin-top: 1.35rem; color: #6d557d; font-size: .86rem; font-weight: 700; }
.platform-future ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.platform-future li { padding: .24rem .65rem; border: 1px solid #dec9e6; border-radius: 2rem; background: #fff9ff; color: #775f84; font-weight: 650; }
.platform-icon {
  position: relative; display: grid; width: 48px; aspect-ratio: 1; place-items: center; flex: none;
  color: #702054; border-radius: .8rem; background: #ffd3ec;
}
.platform-icon--launcher { color: #235e73; background: #c9f4f6; }
.platform-icon::before { content: ""; width: 25px; height: 19px; border: 2px solid currentColor; border-radius: 4px; }
.platform-icon--web::after { content: ""; position: absolute; top: 20px; width: 23px; border-top: 2px solid; }
.platform-icon--launcher::after { content: ""; position: absolute; bottom: 11px; width: 15px; border-bottom: 2px solid; }

.garage-section { padding-block: clamp(2.4rem, 5vw, 4.5rem); background: #f0e3fb; border-block: 1px solid #e6d0f4; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: 1.1rem; }
.section-link { color: #5c2f85; text-underline-offset: .25em; font-weight: 750; }
.tank-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.25rem); }
.tank-card {
  min-width: 0; border: 1px solid #fff7; border-radius: clamp(.7rem, 2vw, 1.35rem); overflow: hidden;
  display: grid; place-items: center; color: white; text-align: center; box-shadow: 0 6px 12px #32134e1a;
  background: radial-gradient(ellipse at 50% 45%, var(--tank-light), var(--tank-dark) 74%);
}
.tank-card--chopper { --tank-light: #f88dbc; --tank-dark: #8e347b; }
.tank-card--phoenix { --tank-light: #ffc078; --tank-dark: #ae4c49; }
.tank-card--mountain { --tank-light: #6dd6ce; --tank-dark: #386d91; }
.tank-card img { width: min(92%, 280px); height: auto; filter: drop-shadow(0 9px 10px #32134e65); }
.tank-card figcaption {
  width: 100%; min-height: 2.5rem; display: grid; place-items: center; padding: .36rem .25rem;
  font: 900 clamp(.78rem, 2vw, 1.25rem)/1.15 var(--display); text-shadow: 0 1px 4px #251040;
  background: #2510404f;
}

.inside main { min-height: calc(100vh - 94px); }
.page-hero {
  min-height: 265px; display: grid; align-items: end; padding: 6rem 0 2rem;
  color: white; background: linear-gradient(90deg, #261541ed, #40225f93, #4d1d6044), url("/assets/bang-bang-vi-chopper.jpg") right 34% / cover;
}
.page-hero h1 { font-size: clamp(2.45rem, 7vw, 5.2rem); letter-spacing: -.06em; text-shadow: 0 4px #2d174e, 0 7px 20px #220a3c66; }
.inside--su-kien .page-hero { background-image: linear-gradient(90deg, #241344ed, #40225f99, #35195033), url("/assets/vice-city-neon-hero.jpg"); }
.inside--huong-dan .page-hero { background-image: linear-gradient(90deg, #251336ee, #40225f99, #35195042), url("/assets/tank-party-hero.jpg"); }
.page-section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.news-list, .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.news-card, .guide-card, .news-status { min-width: 0; padding: clamp(1.15rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: 1rem; background: white; }
.news-card, .guide-card { border-top: 4px solid var(--pink); box-shadow: 0 5px #eeddf4; }
.news-card[data-category="event"], .guide-card:nth-child(even) { border-top-color: #29a4b1; }
.news-card[data-category="guide"] { border-top-color: #9f6cdb; }
.news-card p, .guide-card p, .guide-card li, .news-status { color: var(--muted); }
.news-card p, .guide-card p { margin-top: .75rem; }
.news-card > a { display: inline-block; margin-top: .7rem; font-weight: 750; }
.news-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; color: #713886; font-size: .9rem; font-weight: 700; }
.news-meta time { color: var(--muted); }
.guide-card h2, .guide-more h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
.guide-card ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.guide-card li + li { margin-top: .48rem; }
.guide-account, .guide-more { margin-top: 1.4rem; }
.guide-more h2 { margin-bottom: 1rem; }
kbd { padding: .13rem .36rem; border: 1px solid #ddc6e8; border-radius: .3rem; background: #f7ecfd; color: var(--ink); white-space: nowrap; }

.site-foot { padding-block: .85rem; color: white; background: var(--dark); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-inner img { width: 70px; height: auto; }
.foot-inner p { color: #e8cfee; font-weight: 650; }
.foot-inner nav { display: flex; gap: 1rem; }
.foot-inner nav a { text-decoration: none; }
.foot-inner nav a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  .hero { height: auto; padding-top: 58px; }
  .hero::before { content: ""; display: block; aspect-ratio: 44 / 45; }
  .hero-art { inset-block-start: 58px; }
  .hero-art--chopper img { object-position: center; }
  .hero-art--coast img { object-position: 77% 58%; }
  .hero-mark { top: 15%; left: 5%; width: clamp(120px, 37vw, 300px); }
  .hero-controls { right: 1rem; bottom: .75rem; }
  .play-card { grid-template-columns: auto minmax(0, 1fr); }
  .play-card .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .head-inner { width: calc(100% - 1rem); min-height: 58px; gap: .25rem; padding-inline: .15rem; }
  .site-head.is-scrolled .head-inner { padding-inline: .32rem; }
  .brand { width: 52px; }
  .site-head.is-scrolled .brand { width: 46px; }
  .site-nav { gap: .04rem; }
  .site-nav a { padding-inline: .25rem; font-size: .875rem; }
  .head-play { padding-inline: .48rem; min-height: 40px; font-size: .875rem; }
  .play-grid, .news-list, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .play-card { grid-template-columns: minmax(0, 1fr) auto; gap: .52rem; padding: .8rem; }
  .play-card .btn { grid-column: auto; justify-self: end; }
  .play-card .platform-icon { display: none; }
  .page-hero { min-height: 205px; }
  .foot-inner { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}

/* Compact glass navigation and account dialog */
.head-play { min-height: 40px; padding: .45rem .8rem; font-size: .88rem; cursor: pointer; }
.site-head.is-scrolled .head-play { min-height: 36px; padding: .38rem .72rem; font-size: .83rem; border-radius: .65rem; }
.hero-controls { gap: 0; padding: .1rem .2rem; background: #43245173; border-color: #ffffff70; box-shadow: 0 5px 22px #26112c40, inset 0 1px #ffffff50; backdrop-filter: blur(20px) saturate(1.4); }
.banner-dot { width: 36px; }
.banner-dot::before { width: .48rem; height: .48rem; border-width: 1.5px; transition: width .2s; }
.banner-dot[aria-pressed="true"]::before { width: 1rem; border-radius: .5rem; }
.login-dialog { width: min(92vw, 440px); max-height: min(90dvh, 760px); padding: 0; border: 1px solid #ffffff6a; border-radius: 1.5rem; color: white; background: #291442; box-shadow: 0 28px 80px #14081a99; }
.login-dialog::backdrop { background: #150b26ba; backdrop-filter: blur(5px); }
.login-shell { position: relative; padding: 1.4rem 2rem 2rem; background: radial-gradient(ellipse at 80% 0, #ff6cab70, transparent 55%), linear-gradient(145deg, #582877, #25113c 70%); }
.login-close { position: absolute; right: .9rem; top: .8rem; width: 40px; height: 40px; border: 1px solid #ffffff45; border-radius: 50%; color: white; background: #ffffff1b; font-size: 1.6rem; cursor: pointer; }
.login-brand img { width: 105px; height: auto; }
.login-shell h2 { margin-top: .4rem; color: #fff; font-size: 1.8rem; }
.login-intro { color: #e4c7eb; margin-top: .25rem; }
.login-form { display: grid; gap: .42rem; margin-top: 1.2rem; }
.login-form label { margin-top: .5rem; color: #f4e6fa; font-weight: 700; font-size: .9rem; }
.login-form input { min-width: 0; width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #ffffff66; border-radius: .7rem; color: white; background: #160d2c80; font: inherit; }
.login-form input:focus { outline: 2px solid #a5f4f4; outline-offset: 1px; }
.password-field { position: relative; }
.password-field input { padding-right: 4.5rem; }
.password-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); min-height: 36px; padding: .3rem .65rem; border: 0; border-radius: .45rem; color: #d8fafa; background: #ffffff1a; font-weight: 700; cursor: pointer; }
.eye-icon { position: relative; display: block; width: 20px; height: 12px; border: 1.6px solid currentColor; border-radius: 50% / 65%; }
.eye-icon::before { content: ""; position: absolute; width: 5px; height: 5px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: currentColor; }
.password-toggle[aria-pressed="true"] .eye-icon::after { content: ""; position: absolute; left: 8px; top: -4px; width: 1.7px; height: 18px; transform: rotate(45deg); background: currentColor; box-shadow: 1px 0 #332047; }
.confirm-password { display: grid; gap: .42rem; }
.login-status { min-height: 1.5em; color: #ffe1a4; font-size: .9rem; }
.login-submit { width: 100%; min-height: 49px; cursor: pointer; }
.login-tabs { display: flex; gap: .4rem; margin-top: 1rem; border-bottom: 1px solid #ffffff35; }
.login-tabs button, .login-tools button { border: 0; background: transparent; color: #ead5f2; font: inherit; cursor: pointer; }
.login-tabs button { padding: .5rem .8rem; font-weight: 750; }
.login-tabs button[aria-pressed="true"] { color: #ffda7e; box-shadow: inset 0 -3px #ffb84c; }
.login-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .9rem; }
.login-tools button { color: #d8fafa; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.google-login { width: 100%; min-height: 46px; margin-top: 1rem; border: 1px solid #fff; border-radius: .7rem; background: #fff; color: #372145; font-weight: 750; cursor: pointer; }
.google-login:disabled { border-color: #e3d7e6; background: #e3d7e6; color: #716478; cursor: default; }
.google-mark { display: inline-grid; width: 1.5rem; height: 1.5rem; margin-right: .45rem; place-items: center; color: #4285f4; font-weight: 900; }
@media (max-width: 560px) { .head-play { padding-inline: .42rem; font-size: .76rem; } .site-head.is-scrolled .head-play { padding-inline: .4rem; font-size: .76rem; } .login-shell { padding-inline: 1.35rem; } }

/* Shared account styling with the desktop launcher. */
.login-dialog { width: min(92vw, 370px); background: #24103edb; backdrop-filter: blur(23px) saturate(1.35); }
.login-shell { padding: 22px 25px 20px; background: linear-gradient(145deg, #59287ba8, #24103e7a 72%); }
.login-brand img { width: 80px; }
.login-shell h2 { font-family: "Arial Black", "Segoe UI", sans-serif; font-size: 1.55rem; letter-spacing: -.04em; }
.login-intro { font-size: .85rem; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 12px; padding: 4px; border: 1px solid #ffffff16; border-radius: 10px; background: #110a21a0; }
.login-tabs button { min-height: 36px; padding: 0 .5rem; border-radius: 7px; color: #a994bc; font-size: .86rem; }
.login-tabs button[aria-pressed="true"] { color: white; background: #744384; box-shadow: 0 2px 5px #0003; }
.login-form { gap: 7px; margin-top: 0; }
.login-form label { margin-top: 4px; color: #dfcce6; font-size: .78rem; }
.login-form input { min-height: 44px; height: 44px; padding: 0 13px; border: 1px solid #755485; border-radius: 8px; background: #120b22aa; }
.login-form .password-field input { padding-right: 4.5rem; }
.login-submit { min-height: 52px; margin-top: 8px; border-radius: 9px; font-weight: 900; letter-spacing: .025em; }
.login-tools { margin-top: 3px; }
.login-tools button { color: #d4b6e0; font-size: .73rem; }
.google-divider { display: flex; align-items: center; gap: 10px; margin-top: 13px; color: #bda9cd; font-size: .72rem; }
.google-divider::before, .google-divider::after { content: ""; height: 1px; flex: 1; background: #ffffff22; }
.google-login { min-height: 44px; margin-top: 10px; border: 1px solid #d7c8e4; border-radius: 8px; font-size: .85rem; }
.google-mark { display: inline-block; width: 21px; height: 21px; margin-right: 8px; vertical-align: middle; object-fit: contain; }
.facebook-login { color: white; border-color: #2264c8; background: #2264c8; }

.login-shell { padding: 15px 21px 14px; }
.login-brand img { width: 65px; }
.login-shell h2 { margin: 3px 0; font-size: 1.35rem; }
.login-intro { font-size: .8rem; }
.login-tabs { margin: 10px 0; padding: 3px; }
.login-tabs button { min-height: 32px; }
.login-form, .confirm-password { gap: 5px; }
.login-form label { margin-top: 2px; }
.login-form input { min-height: 40px; height: 40px; }
.password-toggle { min-height: 34px; }
.login-submit { min-height: 44px; margin-top: 4px; }
.google-divider { margin-top: 8px; }
.google-login { min-height: 40px; margin-top: 7px; }

/* Web sign-in card aligned with the Wails launcher. */
.login-dialog { width: min(92vw, 420px); max-height: min(92dvh, 760px); padding: 0; overflow-y: auto; border: 0; border-radius: 1.1rem; color: #16161a; background: #fff; box-shadow: 0 30px 90px #14081acc; }
.login-dialog::backdrop { background: #150b26c4; backdrop-filter: blur(7px); }
.login-shell { position: relative; display: flex; min-height: min(560px, 84dvh); padding: 0; background: #fff; }
.login-form-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 30px clamp(26px,6vw,42px) 22px; }
.login-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px; min-height: 0; padding: 0; border: 1px solid #d8d8df; border-radius: 50%; color: #16161a; background: #fff; font-size: 1.45rem; line-height: 1; cursor: pointer; }
.login-close:hover { background: #f2f2f4; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.login-brand img { width: 88px; height: auto; }
.login-brand-rule { width: 1px; height: 32px; background: #dcdce0; }
.login-brand-name { color: #26262b; font: 800 .72rem/1.14 "Segoe UI",system-ui,sans-serif; letter-spacing: .1em; }
.login-domain { align-self: center; width: min(190px, 70%); margin-top: 11px; filter: drop-shadow(0 4px 10px #2a0f3d1f); }
.login-domain svg { display: block; width: 100%; height: auto; }
.login-form-panel .login-tabs { display: flex; justify-content: center; gap: 26px; margin: clamp(28px,6vh,58px) 0 20px; padding: 0; border: 0; background: none; }
.login-form-panel .login-tabs button { position: relative; min-height: 0; padding: 0 2px 7px; border: 0; border-radius: 0; color: #8d8d95; background: none; font-size: 1rem; font-weight: 650; transition: color .18s ease; }
.login-form-panel .login-tabs button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: #16161a; transform: scaleX(0); transition: transform .2s ease; }
.login-form-panel .login-tabs button:hover::after { background: #c2c2ca; transform: scaleX(.4); }
.login-form-panel .login-tabs button[aria-pressed="true"] { color: #16161a; background: none; box-shadow: none; }
.login-form-panel .login-tabs button[aria-pressed="true"]::after { background: #16161a; transform: scaleX(1); }
.login-form-panel .login-form { display: flex; flex: 1; flex-direction: column; gap: 10px; margin-top: 0; }
.login-field { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid #1d1d22; border-radius: 4px; background: #fff; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.login-field label { position: absolute; top: 7px; left: 12px; margin: 0; color: #4d4d55; font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; pointer-events: none; transition: color .18s ease; }
.login-form-panel .login-field input { width: 100%; height: 54px; min-height: 0; padding: 24px 12px 4px; border: 0; border-radius: 4px; color: #16161a; background: transparent; font-size: .92rem; }
.login-form-panel .login-field input:focus { outline: 0; }
.login-field:focus-within { outline: 2px solid #16161a; outline-offset: -2px; box-shadow: 0 7px 18px #1a0b2a12; }
.login-field:focus-within label { color: #16161a; }
.login-field-fill { border-color: transparent; background: #f1f1f3; }
.login-field.password-field { position: relative; }
.login-field.password-field input { padding-right: 46px; }
.login-field .password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; min-height: 0; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 6px; color: #5b5b63; background: transparent; cursor: pointer; }
.login-field .password-toggle:hover { color: #16161a; background: #0000000f; }
.login-field .password-toggle svg { display: block; width: 20px; height: 20px; }
.login-field .password-toggle[aria-pressed="true"]::after { content: ""; position: absolute; width: 2px; height: 21px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.confirm-password { display: block; }
.login-tools { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.login-form-panel .login-tools button { padding: 2px 0; border: 0; color: #5f5f68; background: transparent; font-size: .74rem; text-decoration: none; transition: color .15s ease; }
.login-form-panel .login-tools button:hover { color: #16161a; text-decoration: underline; }
.login-status { min-height: 0; color: #b3261e; font-size: .76rem; }
.login-status:empty { display: none; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; min-height: 46px; margin: 6px 0 0; padding: 0 16px; border: 0; border-radius: 8px; color: #fff; background: #17171b; font-size: .86rem; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.login-submit:disabled { color: #a3a3aa; background: #f1f1f3; cursor: default; }
.login-submit:not(:disabled):hover { background: #d92b2b; transform: translateY(-1px); box-shadow: 0 9px 22px #d92b3b3d; }
.login-submit:not(:disabled):active { transform: translateY(0) scale(.985); box-shadow: none; }
.login-submit-arrow { font-size: 1.15rem; line-height: 1; transition: transform .18s ease; }
.login-submit:not(:disabled):hover .login-submit-arrow { transform: translateX(3px); }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: #8d8d95; font-size: .7rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #e4e4e8; }
.login-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.login-form-panel .google-login { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid #e0e0e4; border-radius: 5px; color: #2c2c33; background: #fff; font-size: .86rem; font-weight: 700; cursor: pointer; }
.login-form-panel .google-login:disabled { opacity: .52; cursor: default; }
.login-form-panel .google-mark { width: 19px; height: 19px; margin: 0; object-fit: contain; }
.login-form-panel .facebook-login { border-color: #2264c8; color: #fff; background: #2264c8; }
.login-form-panel .facebook-mark { font: 800 1.15rem/1 Arial,sans-serif; }
.login-legal { margin-top: 14px; color: #86868e; font-size: .58rem; letter-spacing: .035em; line-height: 1.5; text-transform: uppercase; }
.login-legal a { color: #5f5f68; }
.login-legal a:hover { color: #16161a; }
@media (max-width: 760px) {
  .login-form-panel { padding: 26px 26px 20px; }
  .login-form-panel .login-tabs { margin: 24px 0 16px; }
}
@media (max-height: 700px) {
  .login-form-panel { padding-block: 20px 16px; }
  .login-form-panel .login-tabs { margin: 18px 0 12px; }
  .login-form-panel .login-field input { height: 48px; padding-top: 21px; }
  .login-form-panel .google-login { min-height: 40px; }
  .login-submit { height: 44px; min-height: 44px; }
}

/* Standalone password reset page (Firebase action URL). */
.reset-page { display: grid; min-height: 100dvh; padding: 24px; place-items: center; }
.reset-page .login-dialog { display: block; width: min(92vw, 420px); }
.reset-page .login-shell { min-height: 0; }
.reset-page .login-form-panel { padding-top: 30px; }
.login-status.is-ok { color: #1f7a3d; }
.reset-page .login-legal { margin-top: auto; padding-top: 18px; }


.reset-page h1 { margin: 16px 0 0; color: #16161a; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: 1.45rem; letter-spacing: -.04em; }
.reset-page #reset-email { min-height: 1.1em; margin-top: 4px; color: #5f5f68; font-size: .84rem; }
