/* ============================================
   Codemy++ Register — Cinematic Immersive Experience
   Matching login.css quality & visual language
   ============================================ */

/* ── Hide navbar, footer, assistant dock for full immersion ── */
body.register-page-active .codemy-navbar,
body.register-page-active .footer,
body.register-page-active .assistant-dock,
body.register-page-active .chatbot-overlay,
body.register-page-active .assistant-dock-restore {
    display: none !important;
}

body.register-page-active .codemy-main {
    padding: 0 !important;
    margin: 0 !important;
}

body.register-page-active {
    background: #0f0f1a !important;
}

/* ── Full-page takeover ── */
.register-universe {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #0f0f1a;
}

/* ═══════════════════════════════════════════════
   LEFT PANEL — Animated brand storytelling
   ═══════════════════════════════════════════════ */
.register-brand-panel {
    position: relative;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f2e 0%, #1a1040 40%, #0d1b3e 100%);
}

/* Animated mesh gradient overlay */
.register-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 25% 35%, rgba(99, 102, 241, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 70% 65%, rgba(249, 115, 22, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    animation: regMeshDrift 14s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes regMeshDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-15px, 20px) scale(1.04); }
    100% { transform: translate(12px, -12px) scale(1.02); }
}

/* Grid pattern overlay */
.register-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.register-brand-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 440px;
}

/* ── Floating orbs ── */
.reg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: 2;
    pointer-events: none;
}

.reg-orb-1 {
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
    top: 8%;
    left: 10%;
    animation: regOrbFloat1 9s ease-in-out infinite;
}

.reg-orb-2 {
    width: 85px;
    height: 85px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 70%);
    top: 55%;
    right: 8%;
    animation: regOrbFloat2 11s ease-in-out infinite;
}

.reg-orb-3 {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, transparent 70%);
    bottom: 12%;
    left: 22%;
    animation: regOrbFloat3 8s ease-in-out infinite;
}

.reg-orb-4 {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation: regOrbFloat1 10s ease-in-out infinite reverse;
}

@keyframes regOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -25px) scale(1.12); }
    66% { transform: translate(-12px, 18px) scale(0.92); }
}

@keyframes regOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-18px, 22px) scale(1.08); }
    66% { transform: translate(25px, -12px) scale(0.95); }
}

@keyframes regOrbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -20px); }
}

/* ── Floating geometric shapes ── */
.reg-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0.1;
}

.reg-shape-hex {
    width: 36px;
    height: 42px;
    background: var(--primary-indigo, #6366f1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 14%;
    right: 15%;
    animation: regShapeRotate 22s linear infinite;
}

.reg-shape-triangle {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 32px solid var(--primary-green, #22c55e);
    bottom: 20%;
    right: 28%;
    animation: regShapeRotate 18s linear infinite reverse;
}

.reg-shape-diamond {
    width: 26px;
    height: 26px;
    background: var(--primary-orange, #f97316);
    transform: rotate(45deg);
    top: 50%;
    left: 8%;
    animation: regShapePulse 5s ease-in-out infinite;
}

.reg-shape-cross {
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 32%;
    left: 18%;
}

.reg-shape-cross::before,
.reg-shape-cross::after {
    content: '';
    position: absolute;
    background: var(--primary-pink, #ec4899);
    border-radius: 2px;
}

.reg-shape-cross::before {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.reg-shape-cross::after {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes regShapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes regShapePulse {
    0%, 100% { opacity: 0.08; transform: scale(1) rotate(45deg); }
    50% { opacity: 0.22; transform: scale(1.25) rotate(45deg); }
}

/* ── Particle canvas ── */
.register-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* ── Brand logo ── */
.reg-logo-cluster {
    margin-bottom: 2rem;
}

.reg-logo-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    font-size: 2rem;
    color: #fff;
    box-shadow:
        0 0 35px rgba(99, 102, 241, 0.3),
        0 0 70px rgba(249, 115, 22, 0.12);
    animation: regLogoGlow 5s ease-in-out infinite alternate;
    position: relative;
}

.reg-logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #f97316, #6366f1);
    background-size: 300% 300%;
    animation: regLogoBorder 7s linear infinite;
    z-index: -1;
    opacity: 0.45;
}

@keyframes regLogoGlow {
    0% { box-shadow: 0 0 35px rgba(99, 102, 241, 0.3), 0 0 70px rgba(249, 115, 22, 0.12); }
    100% { box-shadow: 0 0 45px rgba(249, 115, 22, 0.3), 0 0 90px rgba(99, 102, 241, 0.18); }
}

@keyframes regLogoBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reg-brand-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.reg-brand-name span {
    background: linear-gradient(135deg, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reg-brand-tagline {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    letter-spacing: 0.4px;
}

/* ── Feature carousel ── */
.reg-feature-carousel {
    margin-top: 2.25rem;
    min-height: 130px;
    position: relative;
}

.reg-feature-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.reg-feature-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.reg-feature-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.reg-feature-icon-ring.ring-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fb923c;
}

.reg-feature-icon-ring.ring-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.reg-feature-icon-ring.ring-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.reg-feature-icon-ring.ring-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.reg-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
}

.reg-feature-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 340px;
    line-height: 1.5;
}

/* ── Carousel dots ── */
.reg-feature-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 1rem;
}

.reg-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.3s ease;
}

.reg-feature-dot.active {
    background: var(--primary-orange, #f97316);
    width: 20px;
    border-radius: 3px;
}

/* ── Trust badges ── */
.reg-trust-bar {
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reg-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-trust-icon.trust-green { color: #4ade80; }
.reg-trust-icon.trust-blue  { color: #60a5fa; }
.reg-trust-icon.trust-amber { color: #fbbf24; }

.reg-trust-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    line-height: 1.3;
}

.reg-trust-text strong {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════
   RIGHT PANEL — Registration form
   ═══════════════════════════════════════════════ */
.register-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2.5rem;
    background: linear-gradient(180deg, #fafbfe 0%, #f3f4f8 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Subtle background decoration */
.register-form-panel::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.register-form-panel::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.03) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.register-form-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

/* ── Path context badge ── */
.reg-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: regBadgeIn 0.6s ease-out;
}

.reg-path-badge-exam {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.reg-path-badge-prog {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

@keyframes regBadgeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Heading ── */
.reg-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark, #1e293b);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.reg-subheading {
    color: var(--text-gray, #64748b);
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* ── Glass card ── */
.reg-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.reg-glass-card:hover {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ── Form fields ── */
.reg-field {
    position: relative;
    margin-bottom: 1rem;
}

.reg-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    margin-bottom: 0.35rem;
    transition: color 0.2s ease;
}

.reg-field .reg-input-wrap {
    position: relative;
}

.reg-field .reg-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light, #94a3b8);
    font-size: 0.88rem;
    transition: color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="password"] {
    width: 100%;
    padding: 0.68rem 0.85rem 0.68rem 2.5rem;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    font-size: 0.9rem;
    color: var(--text-dark, #1e293b);
    background: rgba(255, 255, 255, 0.7);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.reg-field input:focus {
    border-color: var(--primary-orange, #f97316);
    box-shadow: 0 0 0 3.5px rgba(249, 115, 22, 0.1);
    background: #fff;
}

.reg-field input:focus ~ .reg-input-icon,
.reg-field input:focus + .reg-input-icon {
    color: var(--primary-orange, #f97316);
}

.reg-field:focus-within label {
    color: var(--primary-orange, #f97316);
}

/* ── Password toggle ── */
.reg-pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light, #94a3b8);
    cursor: pointer;
    font-size: 0.92rem;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 2;
}

.reg-pw-toggle:hover {
    color: var(--primary-orange, #f97316);
}

/* ── Password strength meter ── */
.reg-pwd-strength {
    margin-top: 0.5rem;
}

.reg-pwd-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 0.3rem;
}

.reg-pwd-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color, #e2e8f0);
    transition: background 0.3s ease;
}

.reg-pwd-segment.active-weak    { background: #ef4444; }
.reg-pwd-segment.active-fair    { background: #f97316; }
.reg-pwd-segment.active-good    { background: #eab308; }
.reg-pwd-segment.active-strong  { background: #22c55e; }

.reg-pwd-label {
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
    color: var(--text-light, #94a3b8);
}

.reg-pwd-label.weak   { color: #ef4444; }
.reg-pwd-label.fair   { color: #f97316; }
.reg-pwd-label.good   { color: #eab308; }
.reg-pwd-label.strong { color: #22c55e; }

/* ── Password requirements ── */
.reg-pwd-reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    margin-top: 0.4rem;
}

.reg-pwd-req {
    font-size: 0.72rem;
    color: var(--text-light, #94a3b8);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.reg-pwd-req i {
    font-size: 0.65rem;
}

.reg-pwd-req.met {
    color: #22c55e;
}

.reg-pwd-req.met i {
    color: #22c55e;
}

/* ── Submit button ── */
.reg-btn-submit {
    position: relative;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md, 10px);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', 'Poppins', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.35rem;
}

.reg-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.reg-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.reg-btn-submit:hover::before {
    left: 100%;
}

.reg-btn-submit:active {
    transform: translateY(0);
}

/* Loading state */
.reg-btn-submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.reg-btn-submit.is-loading .reg-btn-text {
    opacity: 0;
}

.reg-btn-submit .reg-btn-spinner {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.reg-btn-submit.is-loading .reg-btn-spinner {
    display: flex;
}

.reg-btn-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: regSpin 0.6s linear infinite;
}

@keyframes regSpin {
    to { transform: rotate(360deg); }
}

/* ── Divider ── */
.reg-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-light, #94a3b8);
    font-size: 0.8rem;
    font-weight: 500;
}

.reg-divider::before,
.reg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e2e8f0);
}

/* ── Google button ── */
.reg-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.68rem 1.5rem;
    border: 1.5px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    background: #fff;
    color: var(--text-dark, #1e293b);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', 'Poppins', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reg-btn-google:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.reg-google-icon {
    width: 18px;
    height: 18px;
}

/* ── Terms text ── */
.reg-terms {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--text-light, #94a3b8);
    line-height: 1.5;
}

.reg-terms a {
    color: var(--primary-orange, #f97316);
    text-decoration: none;
    font-weight: 600;
}

.reg-terms a:hover {
    text-decoration: underline;
}

/* ── Login prompt ── */
.reg-login-prompt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-gray, #64748b);
}

.reg-login-prompt a {
    color: var(--primary-orange, #f97316);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.reg-login-prompt a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange, #f97316);
    transition: width 0.3s ease;
}

.reg-login-prompt a:hover::after {
    width: 100%;
}

/* ── Choose path link ── */
.reg-choose-path {
    text-align: center;
    margin-top: 0.75rem;
}

.reg-choose-path a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--primary-purple, #8b5cf6);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reg-choose-path a:hover {
    color: #7c3aed;
}

/* ── Validation errors ── */
.reg-glass-card .text-danger {
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
}

.reg-glass-card .validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
}

.reg-glass-card .validation-summary-errors li {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.8rem;
    border-left: 3px solid #ef4444;
    margin-bottom: 0.3rem;
}

/* ── Stagger entrance animations ── */
@keyframes regFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reg-animate-in {
    opacity: 0;
    animation: regFadeUp 0.7s ease-out forwards;
}

.reg-animate-in:nth-child(1) { animation-delay: 0.08s; }
.reg-animate-in:nth-child(2) { animation-delay: 0.16s; }
.reg-animate-in:nth-child(3) { animation-delay: 0.24s; }
.reg-animate-in:nth-child(4) { animation-delay: 0.32s; }
.reg-animate-in:nth-child(5) { animation-delay: 0.40s; }
.reg-animate-in:nth-child(6) { animation-delay: 0.48s; }
.reg-animate-in:nth-child(7) { animation-delay: 0.56s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991.98px) {
    .register-universe {
        flex-direction: column;
    }

    .register-brand-panel {
        flex: none;
        padding: 2.25rem 1.5rem 1.75rem;
        min-height: auto;
    }

    .reg-trust-bar {
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }

    .reg-feature-carousel {
        margin-top: 1.5rem;
        min-height: 110px;
    }

    .register-form-panel {
        padding: 2rem 1.5rem 3rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .register-brand-panel {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .reg-logo-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 14px;
    }

    .reg-brand-name {
        font-size: 1.4rem;
    }

    .reg-trust-bar {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .reg-trust-text {
        display: none;
    }

    .register-form-panel {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .reg-heading {
        font-size: 1.4rem;
    }

    .reg-glass-card {
        padding: 1.35rem;
    }

    .reg-feature-carousel {
        display: none;
    }

    .reg-feature-dots {
        display: none;
    }

    /* Hide some orbs/shapes on mobile */
    .reg-orb-3,
    .reg-orb-4,
    .reg-shape-diamond,
    .reg-shape-cross {
        display: none;
    }
}

/* ═══════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════ */
html[data-theme="dark"] .register-form-panel {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

html[data-theme="dark"] .reg-glass-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .reg-field input[type="text"],
html[data-theme="dark"] .reg-field input[type="email"],
html[data-theme="dark"] .reg-field input[type="password"] {
    background: rgba(15, 23, 42, 0.5);
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .reg-field input:focus {
    background: rgba(15, 23, 42, 0.8);
}

html[data-theme="dark"] .reg-heading {
    color: #f1f5f9;
}

html[data-theme="dark"] .reg-btn-google {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .reg-btn-google:hover {
    background: #334155;
}

html[data-theme="dark"] .reg-pwd-segment {
    background: #334155;
}

html[data-theme="dark"] .reg-divider::before,
html[data-theme="dark"] .reg-divider::after {
    background: #334155;
}
