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

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

/* ==== HEADER ==== */
.register-header {
    height: 70px;
    background: #050b14;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

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

.register-logo img {
    height: 44px;
    margin-right: 8px;
}

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

/* ==== SECTION ==== */

.register-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 0;
}

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

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

.register-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);
}

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

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

.register-subtitle {
    font-size: 14px;
    opacity: 0.75;
    text-align: center;
    margin-bottom: 26px;
}

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

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

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

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

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

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

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

.register-btn {
    width: 100%;
    padding: 11px 0;
    border-radius: 999px;
    border: 1px solid #b266ff;
    background: transparent;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
}

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

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

.register-divider {
    text-align: center;
    opacity: 0.7;
    margin: 26px 0 22px;
    position: relative;
}

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

.register-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.12);
    transform: translateY(-50%);
}

/* ==== GOOGLE BUTTON ==== */

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

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

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

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

/* ==== LOGIN LINK ==== */

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

.login-link {
    color: #b266ff;
    text-decoration: none;
    margin-left: 5px;
}

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

/* ==== MOBILE (крупнее и ближе к центру) ==== */
@media (max-width: 767px) {

    .register-header {
        height: 70px;
        padding: 0 16px;
    }

    .register-logo img {
        height: 44px;
        margin-right: 8px;
    }

    .register-logo-text {
        font-size: 20px;
    }

    .register-section {
        min-height: calc(100vh - 70px);
        padding: 16px 0 24px;
    }

    .register-card {
        width: 94%;
        max-width: 420px;
        padding: 28px 22px 24px;
        border-radius: 20px;
    }

    .register-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .register-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .register-input-group label {
        font-size: 13px;
    }

    .register-input-group input {
        padding: 11px 13px;
        font-size: 15px;
    }

    .register-btn {
        padding: 11px 0;
        font-size: 15px;
    }

    .register-divider {
        margin: 22px 0 20px;
        font-size: 12px;
    }

    .google-btn {
        padding: 11px 0;
        font-size: 14px;
    }

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

    .login-block {
        margin-top: 20px;
        font-size: 13px;
    }
}
@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;
    }
}
.register-section {
    padding-top: 160px;
}
.auth-field-error{
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 120, 120, 0.95);
}
