/* ge-login.css
 * Брендинг ТОЛЬКО для страницы /login (подключается только в login.html).
 * Логику авторизации не трогаем — только фон/шапка/оформление формы.
 */

:root {
    /* фон и шапка */
    --ge-login-bg: url('../images/ge_login_bg_desktop.png');
    --ge-login-header: url('../images/ge_login_header.png');
}

/* 1) Фон страницы */
body.is-boxed {
    background: #0f1115 var(--ge-login-bg) center center / cover no-repeat fixed;
}

/* На мобильных fixed иногда дергается — отключаем */
@media (max-width: 768px) {
    body.is-boxed {
        background-attachment: scroll;
    }
}

/* Убираем стандартные темные подложки landing.css */
.body-wrap {
    background: transparent !important;
}

/* 2) Шапка-картинка вместо пустого блока brand */
.site-header-inner {
    justify-content: center;
}

.brand.header-brand {
    display: block;
    width: min(920px, 92vw);
    aspect-ratio: 1831 / 301;
    margin: 10px auto 0;
    background-image: var(--ge-login-header);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

/* 3) Убираем штатную "анимацию квадратов" (она сидит в hero-figure) */
.hero-figure {
    display: none !important;
}

/* 4) Чуть подправим блок формы, чтобы он читался на фоне */
.hero {
    padding-top: 28px;
}

.hero-inner {
    justify-content: flex-start; /* оставляем форму слева — под твой фон это логично */
}

.hero-copy {
    max-width: 560px;
}

#loginForm {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 22px 20px 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* инпуты */
#loginForm .form-input {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

#loginForm .form-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

/* === GE BTN: цвет кнопок (логин и вход в комнату) === */
#loginButton.button.button-primary,
#joinSelectRoomButton.button.button-primary {
    width: 100%;
    background: #D86A2C !important; /* обычное состояние */
    background-image: none !important;
    border: none !important;
    color: #ffffff !important;
}

#loginButton.button.button-primary:hover,
#joinSelectRoomButton.button.button-primary:hover {
    background: #C85F25 !important; /* при наведении */
}

#loginButton.button.button-primary:active,
#loginButton.button.button-primary:focus,
#joinSelectRoomButton.button.button-primary:active,
#joinSelectRoomButton.button.button-primary:focus {
    background: #C85F25 !important;
    box-shadow: 0 0 0 0.2rem rgba(216, 106, 44, 0.28) !important;
}

/* 5) Мобильная компоновка */
@media (max-width: 640px) {
    .hero-inner {
        justify-content: center;
    }

    .hero-copy {
        margin: 0 auto;
    }

    #loginForm {
        width: min(92vw, 520px);
    }

    .brand.header-brand {
        width: 92vw;
        margin-top: 6px;
    }
}

/* === GE FIX 01: убрать диагональную накладку landing template (НЕ трогаем фон body) === */
.body-wrap,
.hero {
    background: transparent !important;
}

.hero::before,
.hero::after,
.body-wrap::before,
.body-wrap::after,
.site-footer::before,
.site-footer::after {
    content: none !important;
    display: none !important;
}

/* === GE FIX 02: убрать диагональную белую подложку (часто это псевдо-элементы landing.css) === */
body.is-boxed::before,
body.is-boxed::after,
.body-wrap::before,
.body-wrap::after,
.site-header::before,
.site-header::after,
main::before,
main::after,
.hero-inner::before,
.hero-inner::after,
.container::before,
.container::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* на всякий случай: чтобы никакой "заливки" поверх фона не было */
.site-header,
main,
.hero,
.site-footer,
.hero-inner,
.container {
    background: transparent !important;
}

/* === GE FIX 03: убрать нижний ряд иконок/кнопок (social + github buttons) === */
#footer .footer-social-links {
    display: none !important;
}
#footer .github-button {
    display: none !important;
}

/* === GE FOOTER: наш футер вместо стандартного === */
#footer .ge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

#footer .ge-footer-left {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

#footer .ge-online {
    color: #2ecc71;
    font-weight: 700;
}

#footer .ge-footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#footer .ge-footer-link {
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

#footer .ge-footer-link:hover {
    text-decoration: underline;
}

/* Мобилка: всё по центру, в 2 строки */
@media (max-width: 640px) {
    #footer .ge-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    #footer .ge-footer-left {
        white-space: normal;
    }

    #footer .ge-footer-right {
        justify-content: center;
    }
}

/* === GE: текст под формой логина === */
.ge-login-caption {
    margin-top: 14px;
    max-width: 560px;
}

.ge-login-caption-small {
    color: rgba(120, 70, 20, 0.95); /* тёмно оранжево-коричневый */
    font-size: 14px;
    line-height: 1.35;
}

/* отодвинуть крупный текст вниз от мелкого */
.ge-login-caption-big {
    margin-top: 34px;
    color: #faede6;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4; /* немного больше расстояние между строками */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* увеличить расстояние между строками, разделёнными <br> */
.ge-login-caption-small br,
.ge-login-caption-big br {
    display: block;
    margin-top: 24px;
    content: "";
}

/* мобилки: компактнее */
@media (max-width: 640px) {
    .ge-login-caption {
        max-width: min(92vw, 520px);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .ge-login-caption-big {
        font-size: 16px;
    }
}

/* GE BTN: крупнее текст + чуть разрядка */
#loginButton.button.button-primary,
#joinSelectRoomButton.button.button-primary {
    font-size: 16px !important;
    letter-spacing: 0.7px !important;
}
