/* ========= BASE LAYOUT ========= */

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Titillium Web', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
    background: radial-gradient(circle at 0% 0%, #2b1459 0%, #050b14 45%, #020308 100%);
}

/* верхняя полоска с логотипом, в стиле основного сайта */
.login-header {
    height: 70px;
    background: #050b14;
    display: flex;
    align-items: center;
    padding: 0 4%;
    box-sizing: border-box;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.login-logo img {
    height: 40px;
    margin-right: 8px;
}

.login-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.login-logo-text span {
    color: #b266ff;
}

/* центрирование основной карточки */

.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px); /* минус высота хедера */
    padding: 40px 0;
    box-sizing: border-box;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ========= CARD ========= */

.login-card {
    width: 420px;
    background: #050b14;
    border-radius: 24px;
    padding: 32px 34px 30px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

/* ========= TEXT ========= */

.login-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
}

.login-subtitle {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
    text-align: center;
    margin: 0 0 26px;
}

/* ========= FORM ========= */

.login-form {
    width: 100%;
}

.login-input-group {
    margin-bottom: 18px;
}

.login-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    opacity: 0.9;
}

.login-input-group input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #070c15;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.login-input-group input:hover {
    border-color: rgba(178, 102, 255, 0.6);
}

.login-input-group input:focus {
    border-color: #b266ff;
    box-shadow: 0 0 0 1px rgba(178, 102, 255, 0.5);
}

/* ========= BUTTONS ========= */

.login-actions {
    margin-top: 18px;
}

.login-btn {
    width: 100%;
    padding: 11px 0;
    border-radius: 999px;
    border: 1px solid #b266ff;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-btn:hover {
    background: linear-gradient(90deg, #b266ff, #6b4dff);
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(178, 102, 255, 0.5);
}

/* ========= DIVIDER ========= */

.login-divider {
    position: relative;
    text-align: center;
    margin: 26px 0 22px;
    opacity: 0.7;
    font-size: 12px;
}

.login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: #050b14;
}

.login-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-50%);
}

/* ========= GOOGLE LOGIN ========= */

.google-login {
    text-align: center;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.google-btn img {
    width: 21px;
    height: 21px;
}

.google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

/* ========= REGISTER BLOCK ========= */

.register-block {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    opacity: 0.9;
}

.register-link {
    color: #b266ff;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

/* ========= HOVER EFFECT FOR CARD ========= */

.login-card:hover {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
    transition: box-shadow 0.3s ease;
}

/* ========= MOBILE VERSION ========= */

@media (max-width: 767px) {

    .login-header {
        height: 60px;
        padding: 0 16px;
    }

    .login-logo img {
        height: 32px;
        margin-right: 6px;
    }

    .login-logo-text {
        font-size: 18px;
    }

    .login-section {
        padding: 24px 0 32px;
        min-height: calc(100vh - 60px);
    }

    .login-card {
        width: 92%;
        padding: 24px 20px 22px;
        border-radius: 18px;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .login-input-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .login-btn {
        padding: 10px 0;
        font-size: 13px;
    }

    .login-divider {
        margin: 20px 0 18px;
    }

    .google-btn {
        padding: 10px 0;
        font-size: 13px;
    }

    .google-btn img {
        width: 19px;
        height: 19px;
    }

    .register-block {
        margin-top: 18px;
        font-size: 12px;
    }
}
.login-alert {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

.login-alert-success {
    background: rgba(34,197,94,0.12);
    color: #bbf7d0;
}

.login-alert-error {
    background: rgba(239,68,68,0.16);
    color: #fecaca;
}
@media (max-width: 767px) {

    #st-header {
        height: 70px;
    }

    #st-logo img {
        height: 38px;
    }

    .login-section,
    .register-section {
        padding-top: 110px; /* меньше, чем на десктопе */
    }

    .login-card,
    .register-card {
        width: 92%;
        padding: 26px 20px;
        border-radius: 18px;
    }
}
.login-section {
    padding-top: 160px; /* регулировка, 140-180px по вкусу */
}

.st-nav-trigger {
    display: none !important;
}
