/**
 * ITImports CRM — Регистрация в стиле главной (Владивосток, порт)
 * Подключать после landing.css
 */

/* Фон как на главной — порт Владивосток */
body.reg-page {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
}

body.reg-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

body.reg-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(14, 78, 107, 0.72) 50%, rgba(12, 74, 110, 0.88) 100%),
        radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.reg-page .container {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Хедер: назад + язык — в стиле главной */
.reg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 0 1.5rem;
    min-height: 44px;
}

.reg-header a {
    color: var(--foam);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.95;
}

.reg-header a:hover {
    color: #fff;
}

.reg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-lang .btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 9999px;
}

@media (max-width: 576px) {
    .reg-header { padding: 0.75rem 0 1.25rem; }
    .reg-lang .btn { padding: 0.35rem 0.5rem; font-size: 0.75rem; }
}

/* Карточка — как на странице входа */
.reg-card {
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(14, 78, 107, 0.05);
    overflow: hidden;
}

.reg-card .card-header-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--sea-light), var(--brass));
    margin: 0;
}

.reg-card .card-body {
    padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
    .reg-card .card-body { padding: 3rem 2.5rem; }
}

/* Заголовок шага — шрифт как на главной */
.reg-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--sea-deep);
    margin-bottom: 1.5rem;
}

.reg-card .form-label {
    font-weight: 600;
    color: var(--navy-text);
}

.reg-card .form-control {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.reg-card .form-control:focus {
    border-color: var(--sea-light);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

/* Кнопка «Продолжить» — как «Войти» */
.reg-card .btn-primary {
    background: linear-gradient(135deg, var(--sea-light), var(--sea-mid));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reg-card .btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 78, 107, 0.35);
}

.reg-card .alert {
    border-radius: 0.75rem;
}

/* Ссылка на оферту в карточке регистрации — как на странице входа */
.reg-card .offer-link {
    border-top: 1px solid #e2e8f0;
}

/* Прогресс шагов — морская палитра */
.reg-progress {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 2rem;
}

.reg-progress .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #64748b;
}

.reg-progress .step.done {
    background: var(--sea-light);
    color: #fff;
}

.reg-progress .step.active {
    background: linear-gradient(135deg, var(--brass-light), var(--brass));
    color: #fff;
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.35);
}

.reg-progress .step-line {
    flex: 1;
    height: 2px;
    min-width: 20px;
    background: rgba(226, 232, 240, 0.8) !important;
}
