:root { color-scheme: dark; --cyan: #52e6f5; --teal: #43e2ca; --muted: #94a6be; --line: #1c3b53; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #eef6ff; background: #020611; font: 14px/1.65 'Sarabun', sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1, h2, p { margin: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ocean-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg,#01040a,#040e1d 50%,#01060e); }
.ocean-background > div, .ocean-background canvas { position: absolute; }
.caustic-layer { inset: -50px; background: radial-gradient(ellipse at 50% 30%,#00f0ff16,transparent 65%),radial-gradient(ellipse at 15% 80%,#0d948826,transparent 55%),radial-gradient(ellipse at 90% 60%,#0284c71a,transparent 60%); filter: blur(28px); animation: caustic-wave 14s ease-in-out infinite alternate; }
.tactical-grid { inset: 0; background-image: linear-gradient(#00dcff0c 1px,transparent 1px),linear-gradient(90deg,#00dcff0c 1px,transparent 1px); background-size: 48px 48px; animation: ocean-drift 35s linear infinite; opacity: .65; }
.scanline { inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 7px,#00f7ff08 8px,transparent 9px); opacity: .55; }
#cyber-particles { inset: 0; width: 100%; height: 100%; opacity: .6; }
.sonar-system { left: 50%; top: 50%; width: 720px; height: 720px; transform: translate(-50%,-50%); opacity: .35; }
.sonar-system > div { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%,-50%); }
.depth-ring { border: 1px solid #38d7f336; }
.depth-ring.outer { width: 720px; height: 720px; }
.depth-ring.middle { width: 500px; height: 500px; border-color: #0d948850; }
.depth-ring.inner { width: 280px; height: 280px; }
.radar-sweep-needle { width: 720px; height: 720px; background: conic-gradient(#00f7ff38, #00f7ff08 50deg,transparent 75deg); animation: radar-turn 12s linear infinite; }
.sonar-ring { width: 60px; height: 60px; border: 1px solid #00f7ff70; box-shadow: 0 0 18px #00f0ff28; animation: sonar-pulse 8s ease-out infinite; }
.sonar-ring.delayed { animation-delay: -4s; }
.beacon-glow { top: 10%; bottom: 10%; width: 240px; filter: blur(70px); opacity: .2; }
.beacon-glow.blue { left: -180px; background: #0066ff; }
.beacon-glow.red { right: -190px; background: #ff1e44; opacity: .1; }
.hud-header, .hud-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #030914cc; border-color: #12526866; backdrop-filter: blur(12px); font: 11px/1.5 'Rajdhani',monospace; letter-spacing: .7px; }
.hud-header { min-height: 58px; padding: 12px 30px; border-bottom: 1px solid #12617655; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 20px; }
.hud-badge, .console-badge { display: inline-flex; align-items: center; gap: 9px; color: #83eafb; border: 1px solid #216c815c; border-radius: 5px; background: #07314166; padding: 5px 10px; font: 600 10px/1.6 'Orbitron',sans-serif; letter-spacing: 1px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #69e6f7; box-shadow: 0 0 9px #00f7ff60; }
.hud-base { color: #54bfbf; }
.hud-clock { display: flex; align-items: center; gap: 8px; color: #83dcf3; }
.hud-clock .icon { width: 15px; height: 15px; }
#live-clock { font: 500 11px 'Orbitron',monospace; letter-spacing: 1.2px; white-space: nowrap; }
.language-badge { padding: 3px 8px; color: #90eaf4; border: 1px solid #24556e; border-radius: 4px; background: #0b2234; }
.login-stage { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex: 1; padding: 44px 24px; }
.login-card-container { width: min(1024px,100%); transition: transform .25s ease-out; }
.marine-glass-frame { display: grid; grid-template-columns: 5fr 7fr; position: relative; border: 1px solid #25bace55; border-radius: 24px; background: #061223ee; box-shadow: 0 0 50px #00e1d91b,0 0 20px #008cff25,0 28px 80px #0008; backdrop-filter: blur(24px); overflow: hidden; }
.marine-glass-frame::after { content: ''; position: absolute; pointer-events: none; inset: 0; border-radius: inherit; border-top: 1px solid #74f6fb90; border-left: 1px solid #14bdeb65; border-right: 1px solid #29c4d03b; }
.branding-panel { position: relative; overflow: hidden; padding: 30px 34px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; border-right: 1px solid #18acbf30; background: radial-gradient(ellipse at 50% 35%,#08374d85,transparent 55%),linear-gradient(180deg,#091b33,#061326 60%,#020914); }
.branding-panel::before, .branding-panel::after { position: absolute; content: ''; pointer-events: none; width: 340px; height: 340px; border-radius: 50%; border: 1px solid #00e1d916; }
.branding-panel::before { top: -150px; left: -155px; box-shadow: 0 0 0 62px #00e1d908; }
.branding-panel::after { bottom: -200px; right: -130px; }
.branding-coordinates { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; color: #56c7d9; font: 11px/1.75 'Rajdhani',monospace; letter-spacing: .5px; }
.branding-coordinates strong { color: #a0f1f6; }
.branding-coordinates small { font-size: 10px; color: #8fa4ba; }
.unit-tag { color: #f99daf; background: #36142299; border: 1px solid #ff4e7a4d; border-radius: 4px; font-size: 10px; padding: 1px 7px; }
.emblem-showcase { position: relative; display: grid; place-items: center; width: 260px; height: 252px; margin: 7px 0; }
.emblem-showcase img { position: relative; z-index: 1; width: 252px; height: 252px; object-fit: contain; filter: drop-shadow(0 0 18px #00d2ff50); animation: emblem-float 6s ease-in-out infinite alternate; }
.emblem-orbit { position: absolute; width: 230px; height: 230px; border-radius: 50%; border: 1px dashed #38dded55; animation: orbit-turn 30s linear infinite; }
.emblem-halo { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: #00bdec36; filter: blur(30px); }
.branding-caption { position: relative; z-index: 1; width: 100%; text-align: center; }
.unit-badge { display: inline-flex; align-items: center; gap: 6px; color: #72dfed; background: linear-gradient(90deg,#0a2458aa,#073742aa,#0b3b3faa); border: 1px solid #32c1cb55; border-radius: 30px; padding: 4px 10px; font: 600 9px/1.8 'Orbitron',sans-serif; letter-spacing: .8px; }
.unit-badge .icon { width: 13px; height: 13px; }
.branding-caption h2 { margin: 12px 0 8px; font: 800 25px/1.3 'Orbitron',sans-serif; letter-spacing: 2px; color: #b1f3fa; }
.branding-caption > p { color: #a5b8ce; font-size: 12px; line-height: 1.9; }
.unit-features { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #1a647244; text-align: left; }
.unit-features > div { padding: 9px; border: 1px solid #14536e50; border-radius: 5px; background: #040d1caa; }
.unit-features span { display: block; color: #8a9fb6; font: 500 10px/1.5 'Rajdhani',monospace; letter-spacing: 1px; }
.unit-features strong { display: block; margin-top: 3px; color: #7de0f0; font-size: 11px; font-weight: 500; }
.login-card { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 44px 28px; min-width: 0; background: linear-gradient(180deg,#071324f2,#040c19f2); }
.console-tags { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.console-badge { font-size: 10px; letter-spacing: .8px; }
.console-version { color: #7a91aa; font: 10px 'Rajdhani',monospace; letter-spacing: .8px; }
.console-heading h1 { display: flex; align-items: center; gap: 12px; color: #f5fbff; font-size: 32px; font-weight: 700; line-height: 1.3; }
.console-heading h1 .icon { width: 24px; height: 24px; color: #42d7ef; }
.console-heading p { color: var(--muted); font-size: 13px; margin-top: 8px; }
#police-login-form { margin-top: 26px; }
.form-field { margin-bottom: 20px; }
.form-field label { color: #c7d9e9; font: 600 12px/1.6 'Rajdhani','Sarabun',sans-serif; letter-spacing: 1px; }
.form-field label span { font: 400 11px 'Sarabun',sans-serif; letter-spacing: 0; color: #829bb2; margin-left: 7px; }
.input-frame { position: relative; margin-top: 8px; }
.input-frame input { display: block; width: 100%; min-width: 0; border: 1px solid #33485f; border-radius: 11px; background: #0a182de6; color: #f0f8ff; padding: 13px 44px; min-height: 49px; outline: none; transition: border-color .2s,box-shadow .2s; font-size: 14px; }
.input-frame input::placeholder { color: #688098; }
.input-frame input:focus { border-color: #52dbea; box-shadow: 0 0 0 3px #00cddd20; }
.input-frame input:-webkit-autofill { -webkit-text-fill-color: #f0f8ff; box-shadow: 0 0 0 1000px #0a182d inset; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #58c6dc; pointer-events: none; }
.input-tag { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #51aaba; font: 600 10px 'Orbitron',sans-serif; }
.password-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.help-link { background: none; border: 0; padding: 0; color: #46cedd; font-size: 12px; }
.help-link:hover { color: #9cf9ff; text-decoration: underline; }
.password-toggle { position: absolute; top: 0; right: 0; height: 100%; width: 44px; display: grid; place-items: center; color: #859cb3; background: transparent; border: 0; border-radius: 9px; }
.password-toggle:hover { color: #60e2ef; }
.eye-slash { display: none; }
.password-toggle[aria-pressed=true] .eye-slash { display: block; }
.login-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #b6c9dc; font-size: 12px; margin: 2px 0 23px; }
.remember-option { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 8px; margin-left: -8px; border-radius: 7px; color: #b9d7e5; cursor: pointer; transition: color .2s,background .2s; }
.remember-option:hover { color: #dcfaff; background: #16c9de0c; }
.remember-option input { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0; margin: 0; cursor: pointer; }
.remember-control { display: grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #347184; border-radius: 5px; background: #091e31; box-shadow: inset 0 1px 3px #0004; transition: border-color .2s,background .2s,box-shadow .2s; }
.remember-control svg { width: 16px; height: 16px; fill: none; stroke: #ecfdff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.remember-option:hover .remember-control { border-color: #58d5e4; }
.remember-option input:checked + .remember-control { border-color: #4ee6ef; background: linear-gradient(135deg,#098ec1,#05aaac); box-shadow: 0 0 10px #00cfe529,inset 0 1px 1px #caffff30; }
.remember-option input:checked + .remember-control svg { opacity: 1; }
.remember-option input:focus-visible + .remember-control { outline: 2px solid #74ecf6; outline-offset: 3px; }
.access-note { display: inline-flex; align-items: center; gap: 5px; color: #6abecb; font: 500 10px 'Rajdhani',monospace; letter-spacing: 1px; }
.access-note .icon { width: 13px; height: 13px; }
.aqua-action-btn { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 22px; border: 1px solid #1ff0f14d; border-radius: 11px; color: #fff; font-weight: 700; background: linear-gradient(120deg,#0284c7,#0099ff 35%,#00bfb5 85%,#0284c7); background-size: 200% 200%; box-shadow: 0 7px 24px #00b8d535; animation: button-flow 7s ease infinite; transition: box-shadow .2s,transform .2s; }
.aqua-action-btn::after { content: ''; position: absolute; z-index: -1; top: -50%; left: -70%; width: 30%; height: 200%; transform: rotate(25deg); background: linear-gradient(60deg,transparent,#ffffff50,transparent); animation: button-shimmer 6s ease infinite; }
.aqua-action-btn:hover { box-shadow: 0 7px 28px #00e1ef50; }
.aqua-action-btn:active { transform: scale(.99); }
.aqua-action-btn:disabled { opacity: .75; cursor: wait; }
.submit-arrow { font-size: 23px; line-height: 1; margin-left: 2px; }
.console-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; margin-top: 30px; border-top: 1px solid #22354a; color: #8ca6bb; font-size: 11px; }
.console-footer > span:first-child { display: flex; align-items: center; gap: 8px; font: 600 10px 'Rajdhani',monospace; letter-spacing: 1px; color: #75d9e2; }
.login-feedback { color: #ffb9c8; background: #51172b66; border: 1px solid #ff557654; border-radius: 9px; padding: 11px 14px; font-size: 13px; margin-top: 20px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.hud-footer { min-height: 50px; padding: 14px 30px; border-top: 1px solid #123f5366; color: #7a92aa; font-size: 11px; flex-wrap: wrap; }
.hud-footer > div { display: flex; flex-wrap: wrap; gap: 10px; }
.hud-footer strong { color: #70dbe9; font: 600 9px/1.6 'Orbitron',sans-serif; letter-spacing: 1px; }
.keyboard-hint { color: #67b9ca; letter-spacing: 1px; }
#login-help { width: min(430px,calc(100% - 32px)); padding: 25px; border: 1px solid #278498; border-radius: 18px; color: #e1f0fa; background: #08182b; box-shadow: 0 20px 80px #0009; }
#login-help::backdrop { background: #010812cc; backdrop-filter: blur(8px); }
.help-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.help-heading h2 { font-size: 18px; }
.help-close { color: #a6dce9; border: 0; background: transparent; font-size: 28px; line-height: 1; padding: 2px 5px; }
#login-help p { margin: 16px 0 22px; color: #a5bcd1; }
@keyframes ocean-drift { to { background-position: 48px 96px; } }
@keyframes caustic-wave { to { transform: scale(1.08) translate(10px,-8px); } }
@keyframes radar-turn { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes sonar-pulse { from { width: 60px; height: 60px; opacity: .6; } to { width: 850px; height: 850px; opacity: 0; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes emblem-float { to { transform: translateY(-5px); filter: drop-shadow(0 0 27px #00f7ff70); } }
@keyframes button-flow { 50% { background-position: 100% 50%; } }
@keyframes button-shimmer { 0%,60% { left: -70%; } 100% { left: 160%; } }
@media (max-width: 1000px) { .hud-base { display: none; } .login-card { padding: 34px; } .branding-panel { padding: 28px; } .console-version { display: none; } }
@media (max-width: 767px) { .hud-header { padding: 12px 18px; gap: 10px; } .hud-badge { font-size: 8px; letter-spacing: .5px; padding: 5px 7px; gap: 6px; } .hud-right { gap: 9px; } .hud-clock .icon { display: none; } #live-clock { font-size: 9px; letter-spacing: .6px; } .language-badge { padding: 2px 5px; } .login-stage { padding: 28px 18px; } .login-card-container { max-width: 470px; } .marine-glass-frame { grid-template-columns: 1fr; border-radius: 20px; } .branding-panel { padding: 22px 26px; border-right: 0; border-bottom: 1px solid #18acbf30; } .branding-coordinates { font-size: 10px; } .branding-coordinates small { font-size: 9px; } .emblem-showcase { width: 180px; height: 152px; margin: -3px 0; } .emblem-showcase img { width: 180px; height: 180px; } .emblem-orbit { width: 150px; height: 150px; } .emblem-halo { width: 120px; height: 120px; } .branding-caption h2 { font-size: 22px; margin: 10px 0 4px; } .branding-caption > p { font-size: 11px; } .unit-features { display: none; } .unit-badge { font-size: 8px; padding: 2px 8px; } .login-card { padding: 27px 26px 24px; } .console-heading h1 { font-size: 28px; } .console-heading p { font-size: 12px; } .console-tags { margin-bottom: 13px; } #police-login-form { margin-top: 22px; } .form-field { margin-bottom: 18px; } .console-footer { margin-top: 24px; } .hud-footer { justify-content: center; text-align: center; gap: 8px; padding: 13px 18px; } .hud-footer > div { justify-content: center; } .keyboard-hint { font-size: 10px; } }
@media (max-width: 360px) { .language-badge { display: none; } .hud-badge { font-size: 7px; } .login-stage { padding-inline: 12px; } .login-card { padding-inline: 22px; } .branding-panel { padding-inline: 22px; } .form-field label span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .login-card-container { transform: none !important; } .sonar-ring { display: none; } }
