/* ============================================================
   AUTH — ОБЩИЕ СТИЛИ ДЛЯ LOGIN / REGISTER
   ============================================================ */

/* ---------- СТРАНИЦА ---------- */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    max-width: 1040px;
    width: 100%;
    background: rgba(6, 14, 26, 0.85);
    border: 1px solid rgba(180, 220, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(100, 150, 220, 0.08);
    position: relative;
}

/* ---------- ЛЕВАЯ ЧАСТЬ (ВИТРИНА) ---------- */
.auth-showcase {
    background: linear-gradient(160deg, rgba(20, 40, 80, 0.95), rgba(8, 18, 38, 0.98));
    padding: 44px 38px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
}

.auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 224, 255, 0.12), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(232, 121, 249, 0.08), transparent 50%);
    pointer-events: none;
}

.auth-showcase::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, 0.02) 30px,
        rgba(255, 255, 255, 0.02) 60px
    );
    pointer-events: none;
    animation: authShimmer 24s linear infinite;
}

@keyframes authShimmer {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.auth-showcase > * { position: relative; z-index: 1; }

/* Бренд */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 32px;
}
.auth-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 24px rgba(168, 224, 255, 0.35);
    flex-shrink: 0;
}
.auth-brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff, #a8e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-brand-text span {
    background: linear-gradient(135deg, #a8e0ff, #7ab8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Заголовок витрины */
.auth-showcase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(150, 200, 255, 0.3);
}
.auth-showcase-title .accent {
    background: linear-gradient(135deg, #a8e0ff, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-showcase-sub {
    color: #a8c8e8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 380px;
}

/* Преимущества */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}
.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(168, 224, 255, 0.1);
    border: 1px solid rgba(168, 224, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.auth-feature-title {
    font-size: 13px;
    font-weight: 700;
    color: #e8f4ff;
    margin-bottom: 2px;
}
.auth-feature-desc {
    font-size: 12px;
    color: #8aa8c8;
    line-height: 1.5;
}

/* Статистика */
.auth-stats {
    display: flex;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(180, 220, 255, 0.1);
}
.auth-stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #a8e0ff;
    line-height: 1;
    text-shadow: 0 0 16px rgba(168, 224, 255, 0.4);
}
.auth-stat-lbl {
    font-size: 10px;
    color: #6a88a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Снежинки */
.auth-snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.auth-snow span {
    position: absolute;
    top: -20px;
    color: rgba(200, 230, 255, 0.55);
    font-size: 14px;
    animation: authSnowFall linear infinite;
    text-shadow: 0 0 6px rgba(200, 230, 255, 0.7);
}
@keyframes authSnowFall {
    0%   { transform: translateY(-20px) rotate(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(650px) rotate(360deg); opacity: 0; }
}

/* ---------- ПРАВАЯ ЧАСТЬ (ФОРМА) ---------- */
.auth-form-side {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(4, 10, 22, 0.6);
}

.auth-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(168, 224, 255, 0.08);
    border: 1px solid rgba(168, 224, 255, 0.2);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: #a8e0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.auth-form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.auth-form-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* Поля */
.auth-field {
    margin-bottom: 12px;
    position: relative;
}
.auth-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}
.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(180, 220, 255, 0.12);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-family: inherit;
}
.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.auth-input:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(168, 224, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(168, 224, 255, 0.08);
}
.auth-input-wrap:focus-within .auth-input-icon {
    opacity: 1;
}

/* Показать/скрыть пароль */
.auth-toggle-pass {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 2;
}
.auth-toggle-pass:hover { opacity: 1; }

/* Ссылка «Забыли пароль» */
.auth-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
}
.auth-link-muted {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.auth-link-muted:hover { color: var(--accent-1); }

/* Кнопка submit */
.auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #e8f4ff, #a8e0ff, #7ab8e8);
    color: #0a1428;
    border: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 28px rgba(168, 224, 255, 0.25);
    letter-spacing: 0.5px;
    font-family: inherit;
}
.auth-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 40px rgba(168, 224, 255, 0.45);
}
.auth-submit:active {
    transform: translateY(0) scale(0.99);
}

/* Разделитель */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 220, 255, 0.15), transparent);
}
.auth-divider span {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Кнопки соцсетей */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.auth-social-btn.vk {
    background: #2787F5;
    color: #fff;
}
.auth-social-btn.vk:hover {
    background: #1a6bc4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 135, 245, 0.4);
}
.auth-social-btn.qr {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: rgba(180, 220, 255, 0.15);
}
.auth-social-btn.qr:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-2px);
}

/* Подсказка ВК */
.auth-hint {
    padding: 12px 14px;
    background: rgba(39, 135, 245, 0.06);
    border: 1px solid rgba(39, 135, 245, 0.15);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.auth-hint strong { color: #7dd3fc; }
.auth-hint code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-1);
    font-size: 11px;
    font-weight: 600;
}

/* Футер формы */
.auth-form-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(180, 220, 255, 0.08);
}
.auth-form-footer a {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
}
.auth-form-footer a:hover { text-decoration: underline; }

/* Алерты */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: authAlertSlide 0.35s ease;
}
@keyframes authAlertSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-alert-error {
    background: rgba(248, 113, 113, 0.08);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
}
.auth-alert-success {
    background: rgba(52, 211, 153, 0.08);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    .auth-showcase {
        min-height: auto;
        padding: 28px 28px 24px;
    }
    .auth-showcase-title {
        font-size: 22px;
    }
    .auth-showcase-sub {
        font-size: 13px;
        margin-bottom: 18px;
    }
    .auth-features {
        gap: 10px;
        margin-bottom: 18px;
    }
    .auth-feature-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .auth-feature-title { font-size: 12px; }
    .auth-feature-desc  { font-size: 11px; }
    .auth-stats {
        gap: 20px;
        padding-top: 16px;
    }
    .auth-stat-num { font-size: 16px; }
    .auth-stat-lbl { font-size: 9px; }
    .auth-form-side { padding: 28px 24px; }
}

@media (max-width: 480px) {
    .auth-page { padding: 12px 0; }
    .auth-layout { border-radius: 18px; }
    .auth-showcase { padding: 22px 20px 20px; }
    .auth-brand { margin-bottom: 18px; }
    .auth-brand-logo { width: 38px; height: 38px; font-size: 18px; }
    .auth-brand-text { font-size: 17px; }
    .auth-showcase-title { font-size: 19px; }
    .auth-showcase-sub { font-size: 12px; }
    .auth-form-side { padding: 22px 20px; }
    .auth-form-title { font-size: 22px; }
    .auth-form-subtitle { font-size: 12px; }
    .auth-input { padding: 11px 12px 11px 38px; font-size: 13px; }
    .auth-input-icon { left: 12px; font-size: 14px; }
    .auth-submit { padding: 12px; font-size: 14px; }
    .auth-social-btn { padding: 10px; font-size: 12px; }
}