/* ==========================================================================
   ПРЕМІАЛЬНІ СТИЛІ РЕЄСТРАЦІЇ ТА ВХОДУ (styleregister.css)
   БЛАКИТНО-БІЛА ПАЛІТРА (Electric Cyan & Ice White) + МОБІЛЬНИЙ АДАПТИВ
   ========================================================================== */
:root {
    --brand-dark-blue: #0B132B;
    --brand-navy: #1C2541;
    --brand-cyan: #0EA5E9;
    --brand-cyan-hover: #0284C7;
    --brand-sky: #38BDF8;
    --text-white: #FFFFFF;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--brand-dark-blue);
    color: var(--text-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.glass {
    background: rgba(11, 19, 43, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* ШАПКА */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 16px 0; }
.header-limit { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-radius: 20px; }
.logo a { font-size: 1.25rem; font-weight: 800; color: #FFF; text-decoration: none; white-space: nowrap; }
.logo .gold-text { color: var(--brand-sky); text-shadow: 0 0 10px rgba(56, 189, 248, 0.4); }
.nav-menu { display: flex; list-style: none; gap: 24px; }
.nav-link { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { background: none; border: none; color: #FFF; font-weight: 700; cursor: pointer; }

/* КАРТКА РЕЄСТРАЦІЇ ТА ВХОДУ */
.register-section {
    padding: 140px 0 80px 0;
    display: flex;
    justify-content: center;
}

.register-card {
    max-width: 680px;
    width: 100%;
    border-radius: 32px;
    padding: 40px;
    margin: 0 auto;
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--brand-sky);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #FFF;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 0.92rem;
    color: #94A3B8;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    font-size: 0.8rem;
    color: #CBD5E1;
    font-weight: 700;
}

.input-group input, .custom-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(11, 19, 43, 0.85);
    color: #FFF;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-group input:focus, .custom-select:focus {
    border-color: var(--brand-sky);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.custom-select option {
    background: #0B132B;
    color: #FFF;
}

/* КОД ПІДТВЕРДЖЕННЯ */
.code-input-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.code-input-wrapper input {
    width: 220px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 12px;
    text-align: center;
    padding: 12px;
    border-radius: 16px;
    border: 2px solid var(--brand-cyan);
    background: rgba(11, 19, 43, 0.9);
    color: #FFF;
    outline: none;
}

/* СПОВІЩЕННЯ */
.alert-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.alert-box.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86EFAC;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 0.78rem; border-radius: 10px; }
.btn-full { width: 100%; }
.btn-glass { background-color: rgba(255, 255, 255, 0.1); color: var(--text-white); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }
.btn-gold { background: var(--brand-cyan); color: #FFF; border: none; box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35); }
.btn-gold:hover { background: var(--brand-cyan-hover); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.45); }
.btn-pulse { animation: btnPulse 2s infinite; }

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* ==========================================================================
   МОБІЛЬНИЙ АДАПТИВ (ПЛАНШЕТИ ТА СМАРТФОНИ)
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar { width: 22px; height: 2px; background-color: #FFF; }

@media (max-width: 992px) {
    .logo a { white-space: nowrap !important; }

    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 75px !important;
        left: 16px !important;
        right: 16px !important;
        background: rgba(11, 19, 43, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        border-radius: 20px !important;
        flex-direction: column !important;
        padding: 24px !important;
        gap: 16px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
        z-index: 9999 !important;
    }

    .nav-menu.active { display: flex !important; }
    .mobile-menu-toggle { display: flex !important; }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .nav-actions .btn {
        display: inline-flex !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .register-section { padding: 110px 0 40px 0 !important; }
    .register-card { padding: 24px 18px !important; border-radius: 24px !important; }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .input-group.full-width { grid-column: span 1 !important; }

    .code-input-wrapper input {
        width: 100% !important;
        max-width: 220px !important;
        font-size: 1.6rem !important;
        letter-spacing: 8px !important;
    }
}

/* РОЗМІР КАРТИНКИ ЛОГОТИПУ У ШАПЦІ */
.site-logo-img {
    height: 38px;
    width: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 576px) {
    .site-logo-img {
        height: 32px; /* Трохи менше для смартфонів */
    }
}