
/* GSR ANPR COMMAND CENTER */

* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #050a14;
    --panel: rgba(17,29,49,.92);
    --text: #edf5ff;
    --muted: #91a8c3;
    --border: rgba(137,179,235,.20);
    --input: #0a1425;
    --accent: #64d8ff;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #edf2fa;
    --panel: rgba(255,255,255,.94);
    --text: #13233c;
    --muted: #536981;
    --border: rgba(55,89,139,.20);
    --input: #f3f6fc;
    --accent: #1763ad;
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Cairo,Tahoma,Arial,sans-serif;
    background:
        radial-gradient(ellipse at 85% 10%,#24649a25,transparent 45%),
        radial-gradient(ellipse at 10% 90%,#6249ce25,transparent 45%),
        var(--bg);
    color: var(--text);
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.flag {
    height: 4px;
    background: linear-gradient(
        90deg,#ce1126 33.33%,
        #fff 33.33% 66.66%,
        #101010 66.66%
    );
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.brand strong {
    display: block;
    font-size: 25px;
    letter-spacing: 4px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
}

.clock {
    display: flex;
    align-items: center;
    gap: 22px;
}

.clock-box strong {
    display: block;
    font-size: 24px;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.clock-box small {
    color: var(--muted);
    font-size: 12px;
}

.theme {
    padding: 10px 16px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.main {
    width: min(1500px,94%);
    margin: auto;
    padding: 35px 0;
    flex: 1;
    display: grid;
    grid-template-columns:
        minmax(0,1.5fr) minmax(340px,.85fr);
    gap: 38px;
    align-items: center;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    background: #071424;
    border: 1px solid #315477;
    border-radius: 28px;
    color: #f1f6ff;
    text-align: center;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(#5cbaff0c 1px,transparent 1px),
        linear-gradient(90deg,#5cbaff0c 1px,transparent 1px);
    background-size: 35px 35px;
    mask-image: linear-gradient(#000,transparent);
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 10%,#167aca45,transparent 65%);
    animation: ambient 6s ease-in-out infinite alternate;
}

@keyframes ambient {
    from {opacity:.4}
    to {opacity:1}
}

.eyebrow {
    font-size: 11px;
    color: #8ac7ed;
    letter-spacing: 3px;
    direction: ltr;
    margin-bottom: 22px;
}

.agency-logo {
    position: relative;
    width: 210px;
    height: 160px;
    display: grid;
    place-items: center;
    padding: 12px;
    background: #ffffff09;
    border: 1px solid #74b4ed35;
    border-radius: 20px;
    box-shadow: 0 0 55px #258eff22;
    overflow: hidden;
}

.agency-logo img {
    width: 100%;
    height: 100%;
    max-height: 136px;
    object-fit: contain;
}

.agency-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        110deg,transparent 35%,#ffffff14 50%,transparent 65%
    );
    animation: shine 8s infinite;
}

@keyframes shine {
    0%,65% {transform:translateX(-150%)}
    95%,100% {transform:translateX(150%)}
}

.logo-fallback {
    color: #a8dfff;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 5px;
}

.country {
    margin-top: 18px;
    font-size: 15px;
    color: #9fb9d7;
    line-height: 1.8;
}

.hero h1 {
    margin: 12px 0;
    font-size: clamp(25px,3vw,42px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.department {
    font-size: 20px;
    color: #c2d5e9;
}

.hero-system {
    margin-top: 14px;
    color: #8ba9c6;
    font-size: 13px;
}

.road {
    width: min(100%,680px);
    margin-top: auto;
}

.road svg {
    width: 100%;
    height: auto;
    display: block;
}

.road-lines {
    animation: roadMotion 1.8s linear infinite;
}

@keyframes roadMotion {
    to {stroke-dashoffset:-60}
}

.scan-line {
    animation: scanMotion 4s ease-in-out infinite;
}

@keyframes scanMotion {
    0%,100% {transform:translateY(-40px);opacity:.25}
    50% {transform:translateY(65px);opacity:1}
}

.vehicle-one {
    animation: vehicleMotion 5s ease-in-out infinite;
}

@keyframes vehicleMotion {
    0%,100% {transform:translateY(8px)}
    50% {transform:translateY(-20px)}
}

.road-caption {
    color: #7596b5;
    font-size: 10px;
    letter-spacing: 3px;
    direction: ltr;
}

.login-card {
    position: relative;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 26px;
    padding: 40px 34px;
    box-shadow: 0 25px 80px #00000030;
    animation: cardIn .7s ease-out;
}

@keyframes cardIn {
    from {opacity:0;transform:translateY(20px)}
    to {opacity:1;transform:translateY(0)}
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(
        90deg,transparent,#4dd6ff,#8268ff,transparent
    );
}

.access-tag {
    display: inline-block;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 2px;
    direction: ltr;
}

.login-card h2 {
    font-size: 32px;
    margin: 24px 0 12px;
}

.subtitle {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 24px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 56px;
    background: var(--input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 15px;
    outline: none;
    transition: border-color .2s,box-shadow .2s;
}

.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px #42baff18;
}

.input-wrap input::placeholder {
    color: var(--muted);
    opacity: .7;
}

.password-wrap input {
    padding-left: 80px;
}

.show-password {
    position: absolute;
    left: 8px;
    top: 8px;
    height: 40px;
    background: transparent;
    color: var(--accent);
    border: 0;
}

.login-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 58px;
    background: linear-gradient(110deg,#2864d8,#6950ec);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 25px #4257dd35;
    transition: transform .2s,filter .2s;
}

.login-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: .7;
    cursor: wait;
}

.login-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,transparent 25%,#ffffff20 50%,transparent 75%
    );
    animation: shine 6s infinite;
}

.notice {
    border-top: 1px solid var(--border);
    margin-top: 28px;
    padding-top: 18px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--muted);
}

.error {
    background: #b9263020;
    color: #ff9ba5;
    border: 1px solid #e44c5945;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: shake .3s ease;
}

:root[data-theme="light"] .error {
    color: #a51e2d;
}

@keyframes shake {
    25% {transform:translateX(5px)}
    75% {transform:translateX(-5px)}
}

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--muted);
    font-size: 12px;
}

.footer strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 8px;
}

.support {
    display: flex;
    direction: ltr;
    flex-wrap: wrap;
    gap: 15px;
}

@media(max-width:1000px) {
    .main {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 24px;
    }

    .hero {
        min-height: 450px;
    }

    .road {
        max-width: 460px;
    }
}

@media(max-width:550px) {
    .topbar {
        padding: 16px;
    }

    .clock-box {
        display: none;
    }

    .brand strong {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .hero {
        min-height: 360px;
        padding: 25px 15px;
    }

    .agency-logo {
        width: 145px;
        height: 110px;
    }

    .agency-logo img {
        max-height: 86px;
    }

    .login-card {
        padding: 28px 20px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none !important;
        transition: none !important;
    }
}

body.motion-paused *,
body.motion-paused *::before,
body.motion-paused *::after {
    animation-play-state: paused !important;
}


/* GSR_PREMIUM_V2 */

body {
    background:
        radial-gradient(ellipse at 75% 30%,#14517a38,transparent 50%),
        radial-gradient(ellipse at 15% 85%,#4034a62e,transparent 45%),
        var(--bg);
}

.page {
    position: relative;
    isolation: isolate;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(#559cda08 1px,transparent 1px),
        linear-gradient(90deg,#559cda08 1px,transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse,#000,transparent 80%);
}

.hero {
    background: linear-gradient(
        150deg,#0b1a2c60,#07142420
    );
    border-color: #457eaf24;
    box-shadow: inset 0 0 70px #187ac709;
}

body .hero .agency-logo {
    width: 255px;
    height: 180px;
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
}

body .agency-logo img {
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 20px #dcae4540);
    animation: agencyReveal 1.2s ease-out both;
}

body .agency-logo::after {
    display: none;
}

@keyframes agencyReveal {
    from {
        opacity: 0;
        transform: scale(.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    color: #f7f9ff;
    font-size: clamp(28px,3.2vw,46px);
    text-shadow: 0 0 25px #61bdff25;
    animation: identityReveal 1s .2s ease-out both;
}

.hero .country,
.hero .department,
.hero .hero-system {
    animation: identityReveal 1s .4s ease-out both;
}

@keyframes identityReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    backdrop-filter: blur(20px);
    border-color: #77b6ea30;
    box-shadow:
        0 30px 100px #00000040,
        inset 0 1px 0 #ffffff09;
}

.login-card h2 {
    font-size: 34px;
}

.footer {
    font-size: 14px;
    background: var(--panel);
}

.footer strong {
    font-size: 17px;
}

.footer a {
    font-size: 14px;
}

.brand strong {
    color: var(--text);
    text-shadow: 0 0 20px #5eb6ff38;
}

:root[data-theme="light"] .hero {
    background: linear-gradient(
        145deg,#ffffffd9,#dce8f6b0
    );
    border-color: #375c8e25;
    color: #152b46;
}

:root[data-theme="light"] .hero h1 {
    color: #142c4c;
    text-shadow: none;
}

:root[data-theme="light"] .hero .country,
:root[data-theme="light"] .hero .department,
:root[data-theme="light"] .hero .hero-system,
:root[data-theme="light"] .hero .eyebrow,
:root[data-theme="light"] .road-caption {
    color: #355b80;
}

@media(max-width:550px) {
    body .hero .agency-logo {
        width: 170px;
        height: 120px;
    }

    body .agency-logo img {
        max-height: 120px;
    }

    .login-card h2 {
        font-size: 26px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none !important;
        transition: none !important;
    }
}
