*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.reg-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #f8fafc;
}

/* ── LEFT PANEL ────────────────────────────────────── */
.reg-left {
    position: relative;
    width: 42%;
    min-height: 100vh;
    background: linear-gradient(160deg, #06133a 0%, #0e2878 38%, #1d4ed8 72%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.reg-left__blob1 {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -160px;
    right: -160px;
    pointer-events: none;
}
.reg-left__blob2 {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}
.reg-left__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.reg-left__logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.reg-left__logo img { height: 36px; }
.reg-left__logo-text { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px; }

.reg-left__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

.reg-left__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.8rem;
    width: fit-content;
    letter-spacing: 0.02em;
}
.reg-left__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

.reg-left__headline {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.reg-left__headline span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reg-left__sub {
    color: #93c5fd;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.reg-left__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reg-left__feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.reg-left__feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.reg-left__feature-text strong {
    display: block;
    color: #fff;
    font-size: 0.87rem;
    font-weight: 600;
}
.reg-left__feature-text span {
    color: #93c5fd;
    font-size: 0.78rem;
}

.reg-left__stats {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.reg-left__stat-item { text-align: left; }
.reg-left__stat-num { color: #fff; font-size: 1.35rem; font-weight: 800; }
.reg-left__stat-label { color: #93c5fd; font-size: 0.72rem; font-weight: 500; margin-top: 0.1rem; }

/* ── RIGHT PANEL ───────────────────────────────────── */
.reg-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    overflow-y: auto;
}

.reg-card {
    width: 100%;
    max-width: 460px;
}

.reg-card__top {
    margin-bottom: 2rem;
}

.reg-card__steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}
.reg-card__step {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background 0.3s;
}
.reg-card__step.active { background: #2563eb; }
.reg-card__step + .reg-card__step { margin-left: 6px; }

.reg-card__step-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reg-card__heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}
.reg-card__sub {
    color: #64748b;
    font-size: 0.9rem;
}
.reg-card__sub a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.reg-card__sub a:hover { text-decoration: underline; }

/* Error / Success message */
.reg-msg {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: none;
}
.reg-msg.danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; display: block; }
.reg-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }

/* Field */
.reg-field {
    margin-bottom: 1.1rem;
}
.reg-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.reg-field input,
.reg-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.reg-field input:focus,
.reg-field select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.reg-field .reg-field__hint {
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}
.reg-field--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reg-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Password wrapper */
.reg-field__pw { position: relative; }
.reg-field__pw input { padding-right: 3rem; }
.reg-field__pw-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    font-size: 1rem;
}
.reg-field__pw-toggle:hover { color: #475569; }

/* Btn */
.reg-btn {
    width: 100%;
    padding: 0.82rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
}
.reg-btn--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.reg-btn--primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(37,99,235,0.45);
    transform: translateY(-1px);
}
.reg-btn--primary:active { transform: translateY(0); }
.reg-btn--fb {
    background: #1877f2;
    color: #fff;
}
.reg-btn--fb:hover { background: #0f65d9; }
.reg-btn--google {
    background: #fff;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.reg-btn--google:hover { background: #f8fafc; border-color: #cbd5e1; }
.reg-btn--google img, .reg-btn--fb img { width: 18px; height: 18px; object-fit: contain; }

.reg-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0;
}
.reg-divider::before, .reg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.reg-divider span { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; }

.reg-back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.reg-back-btn:hover { color: #2563eb; }

/* Responsive */
@media (max-width: 768px) {
    .reg-left { display: none; }
    .reg-right { padding: 2rem 1.25rem; }
    .reg-card { max-width: 100%; }
}
