/* ==========================================================
   QUEEN ANA - naslovna "Uskoro" (sajt u izradi, ulaz šifrom)
   Isti jezik kao početna: prave reke u pozadini, tekst na "obali",
   neon akcenti, krupan Inter 900, obrisna slova sa prugama (.o).
   ========================================================== */
body.gate {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--2);
}

/* ---------- Pozadina: reke ---------- */
.g_art {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
}

.g_art svg {
    width: 100%;
    height: 100%;
}

.g_flow {
    animation: gFlow 2.8s linear infinite;
}

.g_flow_s {
    animation-duration: 3.6s;
}

@keyframes gFlow {
    to { stroke-dashoffset: -32; }
}

/* blagi sjaj levo, da tekst "sedi" na obali */
body.gate::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 60% at 18% 55%, rgba(166, 93, 63, 0.1), transparent 70%),
        radial-gradient(ellipse 30% 40% at 74% 52%, rgba(166, 93, 63, 0.08), transparent 70%);
}

/* ---------- Gornji red ---------- */
.g_top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--page-padding);
}

.g_logo {
    height: 46px;
    width: auto;
}

.g_lang {
    gap: 4px;
    padding: 4px;
    border: 1px solid rgb(var(--fg-rgb) / 0.12);
    border-radius: 999px;
    background: rgb(var(--bg-rgb) / 0.6);
}

.g_lang .lang_btn {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 6px;
    border-radius: 999px;
    opacity: 0.55;
    transition: opacity 0.2s, background 0.2s, box-shadow 0.2s;
}

.g_lang .lang_btn img {
    width: 20px;
    height: 20px;
}

.g_lang .lang_btn::after {
    content: attr(data-lang);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.g_lang .lang_btn.active {
    opacity: 1;
    background: rgb(var(--1-rgb) / 0.25);
    box-shadow: inset 0 0 0 1px rgb(var(--9-rgb) / 0.6);
}

/* ---------- Sadržaj ---------- */
.g_main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: calc(780px + var(--page-padding));
    padding: 20px var(--page-padding) 40px;
}

/* "Sajt u izradi" sa tačkom koja pulsira */
.g_status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border: 1px solid rgba(192, 96, 58, 0.45);
    border-radius: 999px;
    background: rgba(192, 96, 58, 0.08);
    color: #9a4a2c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.g_pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0603a;
}

.g_pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid #c0603a;
    animation: gPulse 2s ease-out infinite;
}

@keyframes gPulse {
    from { transform: scale(0.6); opacity: 0.9; }
    to   { transform: scale(2.2); opacity: 0; }
}

.g_kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    color: var(--neon-hi);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.g_kicker .hk_line {
    flex: none;
    width: 42px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--sun), var(--neon));
}

.g_title {
    margin: 20px 0 22px;
    color: var(--fg);
    font-size: clamp(2.3rem, 5.6vw, 5.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.g_title .o {
    text-shadow: none;
}

/* tačka na kraju = malo sunce, kao na početnoj */
.g_end {
    color: var(--sun);
    -webkit-text-fill-color: var(--sun);
}

.g_text {
    max-width: 500px;
    color: rgb(var(--fg-rgb) / 0.74);
    font-size: 1.02rem;
    line-height: 1.75;
}

.g_contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: rgb(var(--fg-rgb) / 0.6);
    font-size: 0.88rem;
}

.g_contact i {
    color: var(--neon);
}

.g_contact a {
    color: var(--fg);
    border-bottom: 1px solid rgb(var(--9-rgb) / 0.5);
    transition: color 0.2s, border-color 0.2s;
}

.g_contact a:hover {
    color: var(--neon-hi);
    border-color: var(--neon-hi);
}

/* ---------- Ulaz šifrom ---------- */
.g_form {
    max-width: 480px;
    margin-top: 34px;
    padding: 18px 18px 14px;
    border: 1px solid rgb(var(--9-rgb) / 0.35);
    border-radius: 16px;
    background: rgb(var(--bg-rgb) / 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.g_label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-hi);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.g_row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.g_field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.g_field input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 16px;
    border: 1px solid rgb(var(--fg-rgb) / 0.14);
    border-radius: 10px;
    background: var(--2);
    color: var(--fg);
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.08em;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.g_field input::placeholder {
    color: rgb(var(--fg-rgb) / 0.35);
    letter-spacing: 0.04em;
}

.g_field input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgb(var(--9-rgb) / 0.2);
}

.g_eye {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgb(var(--fg-rgb) / 0.5);
    transform: translateY(-50%);
    transition: color 0.2s, background 0.2s;
}

.g_eye:hover,
.g_eye[aria-pressed="true"] {
    color: var(--neon-hi);
    background: rgb(var(--1-rgb) / 0.15);
}

.g_go {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    border: 1px solid #a65d3f;
    border-radius: 10px;
    background: var(--1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / 0.18);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.g_go:hover {
    background: var(--9);
    transform: translateY(-2px);
}

.g_go:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.g_msg {
    min-height: 1.4em;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* pogrešna šifra: kartica se strese, ivica pocrveni */
.g_form.is_wrong {
    border-color: rgba(255, 61, 79, 0.7);
    animation: gShake 0.45s;
}

.g_form.is_wrong .g_msg {
    color: #b8443a;
}

@keyframes gShake {
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* tačna šifra: zeleno, pa ulaz na sajt */
.g_form.is_ok {
    border-color: rgba(47, 125, 110, 0.7);
}

.g_form.is_ok .g_msg {
    color: #2f7d6e;
}

/* ---------- Dno ---------- */
.g_foot {
    position: relative;
    z-index: 2;
    padding: 0 var(--page-padding) 22px;
    color: rgb(var(--fg-rgb) / 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* ---------- Telefon i tablet: reke su prigušena pozadina ---------- */
@media (max-width: 900px) {
    .g_art {
        opacity: 0.4;
    }

    .g_main {
        justify-content: flex-start;
        padding-top: 30px;
    }
}

@media (max-width: 520px) {
    .g_logo {
        height: 38px;
    }

    .g_row {
        flex-direction: column;
    }

    .g_go {
        justify-content: center;
    }

    .g_form {
        padding: 16px 14px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .g_flow,
    .g_pulse::after,
    .g_form.is_wrong {
        animation: none;
    }
}
