/* Full-screen entry gate — pozadina.png + sign in */
.gcg-site-gate {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px 16px 20px;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
}

.gcg-site-gate[hidden] {
    display: none !important;
}

.gcg-site-gate__bg {
    position: absolute;
    inset: 0;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    z-index: 0;
}

@media (min-aspect-ratio: 16/10) {
    .gcg-site-gate__bg {
        background-size: cover;
        background-position: top left;
    }
}

.gcg-site-gate__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.05) 0%,
        rgba(6, 10, 18, 0.18) 38%,
        rgba(6, 10, 18, 0.62) 72%,
        rgba(6, 10, 18, 0.82) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.gcg-site-gate__lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.gcg-site-gate__lang .header-lang > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.gcg-site-gate__lang .header-lang > a:hover {
    color: var(--tg-primary-color, #ebc06d);
}

.gcg-site-gate__lang .sub-menu {
    min-width: 11rem;
    margin-top: 8px;
}

.gcg-site-gate__panel {
    position: relative;
    z-index: 2;
    width: min(100%, 360px);
    padding: 18px 20px 16px;
    border-radius: 14px;
    background: rgba(8, 12, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
}

.gcg-site-gate__logo {
    display: none;
}

.gcg-site-gate__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.gcg-site-gate__intro {
    display: none;
}

.gcg-site-gate__errors {
    list-style: none;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    text-align: left;
}

.gcg-site-gate__errors:empty {
    display: none;
}

.gcg-site-gate__errors li {
    color: #ffb4bc;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.gcg-site-gate__errors li + li {
    margin-top: 6px;
}

.gcg-site-gate__form {
    text-align: left;
    margin-bottom: 10px;
}

.gcg-site-gate__field {
    margin-bottom: 10px;
}

.gcg-site-gate__field label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gcg-site-gate__field input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.875rem;
}

.gcg-site-gate__field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.gcg-site-gate__field input:focus {
    outline: none;
    border-color: var(--tg-primary-color, #ebc06d);
    box-shadow: 0 0 0 3px rgba(235, 192, 109, 0.18);
}

.gcg-site-gate__submit {
    width: 100%;
    margin-top: 2px;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.gcg-site-gate__forgot {
    display: inline-block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    text-decoration: none;
}

.gcg-site-gate__forgot:hover {
    color: var(--tg-primary-color, #ebc06d);
}

.gcg-site-gate__register-wrap {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gcg-site-gate__register-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8125rem;
    margin: 0 0 8px;
}

.gcg-site-gate__register {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.875rem;
}

html.gcg-gate-open {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
}

html.gcg-gate-open body {
    overflow: hidden !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}

html.gcg-gate-open #gcg-site-gate,
html.gcg-gate-open #gcg-site-gate * {
    touch-action: auto;
}

@media (max-width: 575px) {
    .gcg-site-gate {
        padding: 8px 12px 14px;
    }

    .gcg-site-gate__panel {
        padding: 14px 16px 12px;
        width: min(100%, 340px);
    }

    .gcg-site-gate__lang {
        top: 12px;
        right: 12px;
    }
}
