.game-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}

.game-login-overlay.is-open {
    display: flex;
}

.game-login-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #c9a227;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), 0 24px 80px rgba(0, 0, 0, 0.55);
    background: #0a1633;
    font-family: 'Titillium Web', 'Segoe UI', sans-serif;
}

.game-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.game-login-close:hover {
    background: #fff;
    transform: scale(1.05);
}

.game-login-modal__left {
    position: relative;
    min-height: 520px;
    background: #000;
}

.game-login-modal__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.game-login-modal__right {
    padding: 28px 26px 22px;
    background: linear-gradient(180deg, #0c1a3d 0%, #08122b 100%);
    color: #fff;
    overflow-y: auto;
}

.game-login-promo {
    position: relative;
    padding: 14px 12px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    background:
        linear-gradient(rgba(8, 18, 43, 0.72), rgba(8, 18, 43, 0.72)),
        url('/images/gif/banner-web.gif') center/cover no-repeat;
    text-align: center;
}

.game-login-promo__badge {
    display: inline-block;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.game-login-promo__title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.game-login-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.15;
}

.game-login-subtitle {
    margin: 0 0 18px;
    background: #b71c1c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    line-height: 1.4;
}

.game-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-login-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #eceff4;
    border-radius: 8px;
    overflow: hidden;
}

.game-login-field__icon {
    width: 44px;
    min-width: 44px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5c6b84;
    font-size: 15px;
}

.game-login-field input {
    flex: 1;
    border: 0;
    background: transparent;
    height: 48px;
    padding: 0 12px 0 0;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

.game-login-field input::placeholder {
    color: #7b8798;
}

.game-login-field__toggle {
    border: 0;
    background: transparent;
    width: 42px;
    height: 48px;
    color: #5c6b84;
    cursor: pointer;
}

.game-login-submit {
    margin-top: 4px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    height: 50px;
    background: #43a047;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: 0.2s ease;
}

.game-login-submit:hover {
    background: #388e3c;
    transform: translateY(-1px);
}

.game-login-divider {
    position: relative;
    text-align: center;
    margin: 16px 0 14px;
    color: #8fa0bf;
    font-size: 13px;
}

.game-login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.game-login-divider span {
    position: relative;
    background: #0c1a3d;
    padding: 0 10px;
}

.game-login-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: #0088cc;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.game-login-telegram:hover {
    background: #0077b3;
    color: #fff;
    text-decoration: none;
}

.game-login-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.game-login-links a {
    color: #d7deef;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-login-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.game-login-captcha {
    margin-top: 18px;
}

.game-login-captcha__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 58px;
}

.game-login-captcha__success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 700;
}

.game-login-captcha__success i {
    font-size: 18px;
}

.game-login-captcha__brand img {
    height: 18px;
    width: auto;
    display: block;
}

.game-login-captcha small {
    display: block;
    margin-top: 8px;
    color: #8fa0bf;
    font-size: 10px;
    line-height: 1.4;
}

body.game-login-open {
    overflow: hidden;
}

.modal[id^="gameModal"] {
    display: none !important;
}

@media (max-width: 860px) {
    .game-login-modal {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 20px);
    }

    .game-login-modal__left {
        min-height: 220px;
        max-height: 240px;
    }

    .game-login-modal__right {
        padding: 20px 18px 18px;
    }
}

@media (max-width: 480px) {
    .game-login-links {
        flex-direction: column;
    }
}
