/* ============================================================
   TAWSIAH — Register · Matches Login (auth.css) design system
   ============================================================ */

/* ── Auth-level variables (mirrors auth.css) ── */
:root {
    --purple-primary:   #209aa2;
    --purple-dark:      #205b5f;
    --purple-light:     #86b7ba;
    --purple-lightest:  #FFF1E3;
    --purple-gradient:  linear-gradient(135deg, #209aa2 0%, #205b5f 100%);
    --text-primary:     #205b5f;
    --text-secondary:   #6d8d90;
    --border-color:     #dce8e9;
    --success:          #86b7ba;
    --error:            #EF4444;
    --white:            #FFFFFF;
    --shadow-lg:        0 25px 50px -12px rgba(32, 154, 162, 0.25);
}

/* ── Accent by role ── */
.reg-wrap {
    --accent:       #209aa2;
    --accent-dark:  #205b5f;
    --accent-soft:  rgba(32,154,162,0.10);
    --accent-ring:  rgba(32,154,162,0.18);
    --accent-line:  rgba(32,154,162,0.28);
    --accent-grad:  linear-gradient(135deg,#209aa2 0%,#205b5f 100%);
}
.reg-wrap[data-role="company"] {
    --accent:      #e78a56;
    --accent-dark: #d97a3e;
    --accent-soft: rgba(231,138,86,0.12);
    --accent-ring: rgba(231,138,86,0.18);
    --accent-line: rgba(231,138,86,0.26);
    --accent-grad: linear-gradient(135deg,#e78a56 0%,#de9369 100%);
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.reg-page {
    min-height: 100vh;
    background: #f5f9f9;
    display: flex;
    align-items: stretch;
}

.reg-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   LEFT — BRAND PANEL  (mirrors .login-branding exactly)
   ============================================================ */
.reg-branding {
    flex: 1;
    background: linear-gradient(155deg, #22d0d9 0%, #209aa2 50%, #177880 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: panelSlideIn 0.75s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes panelSlideIn {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Dot-grid texture */
.reg-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Decorative rings */
.brand-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.brand-ring-1 {
    width: 560px; height: 560px;
    border: 1px solid rgba(255,255,255,.15);
    top: -220px; left: -160px;
    animation: ringDrift 22s ease-in-out infinite;
}
.brand-ring-2 {
    width: 360px; height: 360px;
    border: 1px solid rgba(255,255,255,.10);
    top: -80px; left: 40px;
    animation: ringDrift 17s ease-in-out infinite reverse;
}
.brand-ring-3 {
    width: 220px; height: 220px;
    border: 1.5px solid rgba(255,255,255,.12);
    top: 130px; left: -80px;
    animation: ringDrift 13s ease-in-out infinite 2s;
}
.brand-ring-4 {
    width: 180px; height: 180px;
    border: 1px solid rgba(255,255,255,.08);
    bottom: 180px; right: -80px;
    animation: ringDrift 19s ease-in-out infinite reverse 1s;
}

@keyframes ringDrift {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    33%      { transform: translate(18px,-22px) rotate(60deg); }
    66%      { transform: translate(-12px,14px) rotate(120deg); }
}

/* Glow blobs */
.brand-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.brand-glow-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 65%);
    top: -100px; left: -100px;
    animation: glowBreathe 5s ease-in-out infinite alternate;
}
.brand-glow-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 65%);
    bottom: 0; right: 60px;
    animation: glowBreathe 7s ease-in-out infinite alternate-reverse;
}

@keyframes glowBreathe {
    from { transform: scale(1);   opacity: 0.6; }
    to   { transform: scale(1.2); opacity: 1; }
}

/* Stats bar */
.reg-stats-bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 24px;
    padding: 32px 52px 0;
    animation: fadeSlideDown 0.7s ease 0.2s both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reg-stat { display: flex; flex-direction: column; gap: 3px; }
.reg-stat-num {
    font-size: 22px; font-weight: 900; color: white;
    letter-spacing: -0.03em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.reg-stat-lbl {
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.65);
    letter-spacing: .04em; white-space: nowrap;
}
.stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.20); flex-shrink: 0; }

/* Main brand content */
.reg-branding-content {
    position: relative; z-index: 2;
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 52px 64px;
    text-align: center; color: white;
}

/* Logo wrapper */
.reg-logo-wrap {
    position: relative;
    width: 140px; height: 140px;
    margin: 0 auto 28px;
    display: flex; align-items: center; justify-content: center;
}

.reg-logo-halo {
    position: absolute; inset: -22px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    animation: haloPulse 2.8s ease-in-out infinite;
}
.reg-logo-halo::after {
    content: ''; position: absolute; inset: -22px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    animation: haloPulse 2.8s ease-in-out infinite 0.5s;
}

@keyframes haloPulse {
    0%,100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.18); opacity: 0.35; }
}

.reg-logo-circle {
    position: relative; z-index: 2;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.20);
    border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,.35);
    box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,.10);
    animation: logoFloat 3.2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,100% { transform: translateY(0)     rotate(0deg);   }
    50%      { transform: translateY(-10px) rotate(1.5deg); }
}

.reg-logo-img {
    width: 64px; height: 64px; border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}

.reg-logo-orbit {
    position: absolute; inset: 0;
    animation: orbitSpin 8s linear infinite;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.85);
    box-shadow: 0 0 10px rgba(255,255,255,.70);
}
.orbit-dot-1 { top: 0;      left: 50%; transform: translateX(-50%); }
.orbit-dot-2 { bottom: 8%;  right: 6%; }
.orbit-dot-3 { bottom: 8%;  left: 6%; }

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Eyebrow / heading / sub */
.reg-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255,255,255,.65);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px; justify-content: center;
}
.reg-eyebrow::before { content: '—'; opacity: .5; font-weight: 400; }

.reg-heading {
    font-size: clamp(34px,3.5vw,50px); font-weight: 900; color: white;
    line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px;
}

.reg-sub {
    font-size: 15px; color: rgba(255,255,255,.78);
    line-height: 1.8; max-width: 340px; margin: 0 auto 32px;
}

/* Feature pills */
.reg-pills { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.reg-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 100px; padding: 10px 20px;
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(14px);
    animation: pillSlideIn 0.55s ease forwards;
}
.reg-pill-1 { animation-delay: 0.5s; }
.reg-pill-2 { animation-delay: 0.7s; }
.reg-pill-3 { animation-delay: 0.9s; }

@keyframes pillSlideIn { to { opacity: 1; transform: translateY(0); } }

.pill-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.90); flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255,255,255,.70);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%,100% { transform: scale(1);   box-shadow: 0 0 6px  rgba(255,255,255,.60); }
    50%      { transform: scale(1.5); box-shadow: 0 0 14px rgba(255,255,255,.90); }
}

/* ============================================================
   RIGHT — FORM SECTION  (mirrors .login-form-section)
   ============================================================ */
.reg-form-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background: white;
    overflow-y: auto;
}

.reg-form-inner {
    width: 100%;
    max-width: 460px;
    padding: 56px 48px 56px;
    animation: formFadeIn 0.6s ease 0.15s both;
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.reg-form-hdr { margin-bottom: 28px; text-align: center; }
.reg-form-title {
    font-size: 28px; font-weight: 700;
    color: var(--text-primary); margin: 0 0 8px;
}
.reg-form-sub {
    font-size: 1rem; color: var(--text-secondary);
    margin: 0; line-height: 1.5;
}

/* Sign-in link at top */
.reg-toplink {
    text-align: center; margin-bottom: 24px;
    font-size: 14px; color: var(--text-secondary);
}
.reg-toplink a { color: var(--purple-primary); font-weight: 600; text-decoration: none; }
.reg-toplink a:hover { text-decoration: underline; }

/* ============================================================
   STEPPER
   ============================================================ */
.reg-stepper {
    display: flex; align-items: center; margin-bottom: 28px;
}
.reg-stepper-item {
    display: flex; align-items: center; flex: 1; position: relative;
}
.reg-stepper-item:last-child { flex: 0 0 auto; }

.reg-stepper-dot {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 800;
    background: white; border: 2px solid var(--border-color); color: #9cb5b8;
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
}
.reg-stepper-line {
    flex: 1; height: 2px; background: var(--border-color);
    margin: 0 8px; border-radius: 2px; transition: background .3s;
}
.reg-stepper-item.is-active .reg-stepper-dot {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 0 0 4px var(--accent-ring);
    transform: scale(1.1);
}
.reg-stepper-item.is-done .reg-stepper-dot {
    background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.reg-stepper-item.is-done .reg-stepper-line { background: var(--accent); }
.reg-stepper-label {
    position: absolute; top: 44px; font-size: 0.70rem; font-weight: 700;
    color: #9cb5b8; white-space: nowrap; left: 50%; transform: translateX(-50%);
}
.reg-stepper-item.is-active .reg-stepper-label { color: var(--accent); }

/* ============================================================
   ROLE CARDS
   ============================================================ */
.role-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.role-card {
    --rc: #209aa2;
    display: flex; align-items: center; gap: 18px;
    width: 100%; text-align: start; padding: 18px 20px;
    background: white; border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer; font: inherit;
    transition: transform .2s ease, border-color .2s, box-shadow .2s;
    position: relative;
}
.role-card:hover { transform: translateY(-3px); border-color: var(--rc); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.role-card.is-selected { border-color: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 18%, transparent); }

.role-well {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: color-mix(in srgb, var(--rc) 12%, transparent);
    color: var(--rc);
    border: 1.5px solid color-mix(in srgb, var(--rc) 22%, transparent);
}
.role-txt { flex: 1; min-width: 0; }
.role-txt b { display: block; font-size: 1.03rem; font-weight: 700; color: var(--text-primary); }
.role-txt span { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.45; }
.role-check {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; transition: all .2s;
}
.role-card.is-selected .role-check { background: var(--rc); border-color: var(--rc); }
.role-card.is-selected .role-check i { transform: scale(1); }
.role-check i { transform: scale(0); transition: transform .2s; }

.role-card[data-role="seeker"]  { --rc: #209aa2; }
.role-card[data-role="company"] { --rc: #e78a56; }

/* ============================================================
   FORM FIELDS  (mirrors login input style exactly)
   ============================================================ */
.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; }
.reg-field-full { grid-column: 1 / -1; }

.reg-field .reg-lbl {
    font-size: 0.88rem; font-weight: 600;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 6px;
}
.reg-field .opt-tag { color: var(--text-secondary); font-weight: 500; font-size: 0.76rem; }

.reg-control { position: relative; display: flex; align-items: center; }

.reg-control .reg-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); pointer-events: none;
    transition: color .3s ease; font-size: 1rem;
}
html[dir="rtl"] .reg-control .reg-icon { left: auto; right: 16px; }

.reg-inp, .reg-sel, .reg-ta {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px; color: var(--text-primary);
    background: white; font: inherit;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s;
}
.reg-inp:focus, .reg-sel:focus, .reg-ta:focus {
    outline: none; border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32,154,162,.10);
}
.reg-control:focus-within .reg-icon { color: var(--purple-primary); }
.reg-inp::placeholder, .reg-ta::placeholder { color: #9cb5b8; }

.reg-inp.no-icon { padding-left: 16px; }
html[dir="rtl"] .reg-inp { padding: 14px 46px 14px 16px; }
html[dir="rtl"] .reg-inp.no-icon { padding: 14px 16px; }
html[dir="rtl"] .reg-sel { padding: 14px 46px 14px 40px; }

.reg-sel {
    appearance: none; cursor: pointer;
    padding-left: 46px; padding-right: 40px;
}
.reg-control.is-sel::after {
    content: "\F282"; font-family: "bootstrap-icons"; font-size: 0.8rem;
    position: absolute; right: 14px; color: var(--text-secondary); pointer-events: none;
}
html[dir="rtl"] .reg-control.is-sel::after { right: auto; left: 14px; }

.reg-ta { min-height: 100px; resize: vertical; line-height: 1.6; padding: 14px 16px; }

/* Password toggle */
.pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer;
    color: var(--text-secondary); padding: 4px;
    transition: color .3s; z-index: 3;
}
.pw-toggle:hover { color: var(--purple-primary); }
html[dir="rtl"] .pw-toggle { right: auto; left: 12px; }
.reg-control.has-toggle .reg-inp { padding-right: 46px; }
html[dir="rtl"] .reg-control.has-toggle .reg-inp { padding-right: 46px; padding-left: 46px; }

/* Field error state */
.reg-field.is-error .reg-inp,
.reg-field.is-error .reg-sel,
.reg-field.is-error .reg-ta { border-color: var(--error); }
.reg-field.is-error .reg-inp:focus,
.reg-field.is-error .reg-sel:focus { box-shadow: 0 0 0 4px rgba(239,68,68,.10); }

.reg-err { display: none; font-size: 0.82rem; color: var(--error); align-items: center; gap: 5px; margin-top: 2px; }
.reg-field.is-error .reg-err { display: flex; }

.validation-error { display: block; color: var(--error); font-size: 0.82rem; margin-top: 4px; font-weight: 500; }
.validation-error:empty { display: none; }

/* Password meter + rules */
.pw-meter { height: 5px; border-radius: 4px; background: var(--border-color); overflow: hidden; margin-top: 4px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.pw-rules li { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-secondary); transition: color .2s; }
.pw-rules li i { font-size: 0.85rem; }
.pw-rules li.ok { color: var(--purple-primary); }
.pw-rules li .dot { width: 14px; display: inline-flex; justify-content: center; }

/* Segmented (gender) */
.reg-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.reg-seg-opt {
    flex: 1; min-width: 80px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 14px; border-radius: 10px;
    border: 2px solid var(--border-color); background: white;
    font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; transition: all .2s;
}
.reg-seg-opt:hover { border-color: var(--purple-primary); color: var(--purple-primary); }
.reg-seg-opt.is-on { border-color: var(--purple-primary); background: rgba(32,154,162,.08); color: var(--purple-primary); }

/* File drop zone */
.reg-drop {
    border: 2px dashed var(--border-color); border-radius: 12px;
    padding: 24px 20px; text-align: center; background: white;
    cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
.reg-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.reg-drop:hover, .reg-drop.is-drag { border-color: var(--purple-primary); background: rgba(32,154,162,.05); }
.reg-drop-ico {
    width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(32,154,162,.10); color: var(--purple-primary); font-size: 1.4rem;
}
.reg-drop b { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }
.reg-drop .drop-hint { font-size: 0.78rem; color: var(--text-secondary); display: block; margin-top: 4px; }
.reg-drop.has-file { border-style: solid; border-color: var(--purple-primary); }
.reg-drop.has-file .reg-drop-ico { background: var(--purple-primary); color: #fff; }

/* Interests / occupation autocomplete hook */
.interests-input-container, .occupation-autocomplete-wrapper { position: relative; width: 100%; }
.selected-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.selected-interests .int-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 100px;
    background: rgba(32,154,162,.10); color: var(--purple-primary);
    font-size: 0.82rem; font-weight: 600;
}
.interests-search-input, .occupation-search-input {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border-color);
    border-radius: 12px; background: white; color: var(--text-primary); font: inherit; font-size: 15px;
}
.interests-search-input:focus, .occupation-search-input:focus {
    outline: none; border-color: var(--purple-primary); box-shadow: 0 0 0 4px rgba(32,154,162,.10);
}
.interests-dropdown, .occupation-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1.5px solid var(--border-color);
    border-radius: 12px; margin-top: 4px; max-height: 240px; overflow-y: auto;
    z-index: 50; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.interests-dropdown.is-open, .occupation-dropdown.is-open { display: block; }

/* Terms checkbox */
.reg-terms {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; margin-top: 20px;
}
.reg-terms input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple-primary); flex: 0 0 18px; }
.reg-terms a { color: var(--purple-primary); font-weight: 600; text-decoration: none; }
.reg-terms a:hover { text-decoration: underline; }

/* Validation summary */
.reg-validation-summary {
    background: #FEE2E2; border: 1px solid #FCA5A5;
    color: #991B1B; padding: 14px 16px;
    border-radius: 12px; margin-bottom: 20px; font-size: 14px;
}
.reg-validation-summary ul { margin: 0; padding-inline-start: 18px; }
.validation-summary:empty, .validation-summary ul:empty,
.validation-summary:has(ul:empty) { display: none; }
.validation-summary, .validation-summary-errors {
    background: #FEE2E2; border: 1px solid #FCA5A5;
    color: #991B1B; padding: 14px 16px;
    border-radius: 12px; margin-bottom: 20px; font-size: 14px;
}
.validation-summary-valid { display: none; }

/* ============================================================
   BUTTONS  (mirrors .btn-login style exactly)
   ============================================================ */
.btn-reg-next {
    width: 100%; padding: 16px 28px;
    background: var(--accent-grad);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 6px 20px var(--accent-ring);
    position: relative; overflow: hidden;
    font: inherit;
}
.btn-reg-next::before {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .5s ease;
}
.btn-reg-next:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--accent-ring); }
.btn-reg-next:hover::before { left: 100%; }
.btn-reg-next:hover svg, .btn-reg-next:hover i { transform: translateX(4px); }
.btn-reg-next svg, .btn-reg-next i { transition: transform .3s ease; }
.btn-reg-next:active { transform: translateY(-1px); }

.btn-reg-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 20px; border-radius: 12px;
    border: 2px solid var(--border-color); background: transparent;
    color: var(--text-secondary); font: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-reg-back:hover { border-color: var(--purple-primary); color: var(--purple-primary); background: rgba(32,154,162,.05); }
.btn-reg-back i { transition: transform .2s; }
.btn-reg-back:hover i { transform: translateX(-3px); }
html[dir="rtl"] .btn-reg-back:hover i { transform: translateX(3px); }

.btn-reg-role {
    width: 100%; padding: 16px 28px;
    background: var(--purple-gradient);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer; font: inherit;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 6px 20px rgba(32,154,162,.35);
    position: relative; overflow: hidden;
}
.btn-reg-role::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .5s ease;
}
.btn-reg-role:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(32,154,162,.45); }
.btn-reg-role:hover::before { left: 100%; }
.btn-reg-role:hover i { transform: translateX(4px); }
.btn-reg-role i { transition: transform .3s; }

/* Nav footer row */
.reg-nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.reg-nav .grow { flex: 1; }

/* Divider + Google */
.reg-divider {
    display: flex; align-items: center; text-align: center;
    margin: 24px 0 16px; gap: 12px;
}
.reg-divider::before, .reg-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.reg-divider span { color: var(--text-secondary); font-size: 13px; white-space: nowrap; }

.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px 24px;
    background: #fff; color: #3c4043;
    border: 1.5px solid #dadce0; border-radius: 12px;
    font-size: 15px; font-weight: 500; cursor: pointer; font: inherit;
    transition: background .2s ease, box-shadow .2s ease;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.btn-google svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* Have account link */
.reg-have-account {
    text-align: center; margin-top: 20px;
    padding-top: 20px; border-top: 1px solid var(--border-color);
}
.reg-have-account span { color: var(--text-secondary); font-size: 15px; }
.reg-have-account a { color: var(--purple-primary); font-weight: 600; text-decoration: none; margin-inline-start: 6px; }
.reg-have-account a:hover { color: var(--purple-dark); text-decoration: underline; }

/* ============================================================
   STEP TRANSITIONS
   ============================================================ */
.reg-step { display: none; }
.reg-step.is-active { display: block; animation: stepIn .35s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes stepIn { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   DARK MODE  (mirrors auth.css dark mode exactly)
   ============================================================ */
[data-theme="dark"] {
    --text-primary:  #dce8e9;
    --text-secondary:#9cb5b8;
    --border-color:  #1e4446;
    --white:         #152e31;
}

[data-theme="dark"] .reg-page { background: #0f2224; }

[data-theme="dark"] .reg-branding {
    background: linear-gradient(155deg, #177880 0%, #1a7e87 45%, #134f56 100%);
}

[data-theme="dark"] .reg-form-section { background: #152e31; }

[data-theme="dark"] .reg-form-title { color: #dce8e9; }
[data-theme="dark"] .reg-form-sub { color: #9cb5b8; }
[data-theme="dark"] .reg-lbl { color: #dce8e9; }

[data-theme="dark"] .reg-inp,
[data-theme="dark"] .reg-sel,
[data-theme="dark"] .reg-ta {
    background: #1a3a3d; border-color: #1e4446; color: #dce8e9;
}
[data-theme="dark"] .reg-inp::placeholder,
[data-theme="dark"] .reg-ta::placeholder { color: #6d8d90; }
[data-theme="dark"] .reg-inp:focus,
[data-theme="dark"] .reg-sel:focus,
[data-theme="dark"] .reg-ta:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 4px rgba(32,154,162,.2);
}
[data-theme="dark"] .reg-control .reg-icon { color: #6d8d90; }
[data-theme="dark"] .reg-control:focus-within .reg-icon { color: #86b7ba; }

[data-theme="dark"] .pw-toggle { color: #6d8d90; }
[data-theme="dark"] .pw-toggle:hover { color: #86b7ba; }

[data-theme="dark"] .role-card {
    background: #1a3a3d; border-color: #1e4446;
}
[data-theme="dark"] .role-card:hover { border-color: var(--rc); }
[data-theme="dark"] .role-txt b { color: #dce8e9; }
[data-theme="dark"] .role-txt span { color: #9cb5b8; }
[data-theme="dark"] .role-check { border-color: #1e4446; }

[data-theme="dark"] .reg-stepper-dot { background: #1a3a3d; border-color: #1e4446; }

[data-theme="dark"] .reg-seg-opt { background: #1a3a3d; border-color: #1e4446; color: #9cb5b8; }
[data-theme="dark"] .reg-seg-opt.is-on {
    background: rgba(32,154,162,.18); border-color: var(--purple-primary); color: #86b7ba;
}

[data-theme="dark"] .reg-drop { background: #1a3a3d; border-color: #1e4446; }
[data-theme="dark"] .reg-drop:hover, [data-theme="dark"] .reg-drop.is-drag {
    background: rgba(32,154,162,.12); border-color: var(--purple-primary);
}
[data-theme="dark"] .reg-drop b { color: #dce8e9; }
[data-theme="dark"] .reg-drop .drop-hint { color: #6d8d90; }

[data-theme="dark"] .interests-search-input,
[data-theme="dark"] .occupation-search-input {
    background: #1a3a3d; border-color: #1e4446; color: #dce8e9;
}
[data-theme="dark"] .interests-search-input:focus,
[data-theme="dark"] .occupation-search-input:focus {
    border-color: var(--purple-primary); box-shadow: 0 0 0 4px rgba(32,154,162,.2);
}
[data-theme="dark"] .interests-dropdown,
[data-theme="dark"] .occupation-dropdown {
    background: #1a3a3d; border-color: #1e4446;
}

[data-theme="dark"] .reg-terms { color: #9cb5b8; }
[data-theme="dark"] .reg-terms a { color: #86b7ba; }

[data-theme="dark"] .btn-reg-back {
    border-color: #1e4446; color: #9cb5b8;
}
[data-theme="dark"] .btn-reg-back:hover {
    border-color: #86b7ba; color: #86b7ba; background: rgba(134,183,186,.08);
}

[data-theme="dark"] .btn-google {
    background: #1a3a3d; color: #dce8e9; border-color: #1e4446;
}
[data-theme="dark"] .btn-google:hover { background: #205b5f; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

[data-theme="dark"] .reg-divider::before,
[data-theme="dark"] .reg-divider::after { background: #1e4446; }
[data-theme="dark"] .reg-divider span { color: #6d8d90; }

[data-theme="dark"] .reg-have-account { border-color: #1e4446; }
[data-theme="dark"] .reg-have-account span { color: #9cb5b8; }
[data-theme="dark"] .reg-have-account a { color: #86b7ba; }

[data-theme="dark"] .reg-toplink { color: #9cb5b8; }
[data-theme="dark"] .reg-toplink a { color: #86b7ba; }

[data-theme="dark"] .validation-summary, [data-theme="dark"] .validation-summary-errors {
    background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3); color: #FCA5A5;
}
[data-theme="dark"] .validation-error { color: #FCA5A5; }

/* ============================================================
   RESPONSIVE  (mirrors auth.css breakpoints)
   ============================================================ */
@media (max-width: 1024px) {
    .reg-wrap { flex-direction: column; }
    .reg-branding { flex: none; min-height: auto; animation: panelSlideDown .65s cubic-bezier(0.22,1,0.36,1) both; }

    @keyframes panelSlideDown {
        from { opacity: 0; transform: translateY(-24px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .reg-stats-bar { justify-content: center; padding: 28px 20px 0; gap: 16px; flex-wrap: wrap; }
    .reg-stat-num { font-size: 19px; }
    .reg-stat-lbl { font-size: 10px; }
    .reg-branding-content { flex: none; padding: 18px 20px 28px; }

    .reg-logo-wrap { width: 96px; height: 96px; margin-bottom: 16px; }
    .reg-logo-halo { inset: -14px; }
    .reg-logo-circle { width: 70px; height: 70px; border-radius: 20px; }
    .reg-logo-img { width: 44px; height: 44px; }
    .orbit-dot { width: 6px; height: 6px; }

    .reg-eyebrow { font-size: 10px; margin-bottom: 8px; }
    .reg-heading { font-size: 26px; margin-bottom: 6px; }
    .reg-sub { font-size: 13px; margin-bottom: 16px; max-width: 100%; }
    .reg-pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .reg-pill { font-size: 12px; padding: 7px 14px; gap: 7px; }
    .pill-dot { width: 6px; height: 6px; }

    .brand-ring-1 { width: 320px; height: 320px; top: -140px; left: -100px; }
    .brand-ring-2 { width: 200px; height: 200px; top: -40px;  left: 20px; }
    .brand-ring-3 { width: 130px; height: 130px; top: 50px;   left: -50px; }
    .brand-ring-4 { width: 100px; height: 100px; bottom: 30px; right: -40px; }

    .reg-form-section { flex: none; padding: 0; }
    .reg-form-inner { padding: 36px 24px 40px; }
    .reg-page { background: white; }
    [data-theme="dark"] .reg-page { background: #152e31; }
}

@media (max-width: 576px) {
    .reg-stats-bar { gap: 12px; padding: 22px 16px 0; }
    .stat-sep { height: 24px; }
    .reg-stat-num { font-size: 17px; }
    .reg-branding-content { padding: 14px 16px 22px; }
    .reg-logo-wrap { width: 80px; height: 80px; margin-bottom: 12px; }
    .reg-logo-circle { width: 60px; height: 60px; border-radius: 16px; }
    .reg-logo-img { width: 38px; height: 38px; }
    .reg-heading { font-size: 22px; }
    .reg-sub { display: none; }
    .reg-pill { font-size: 11px; padding: 6px 11px; }
    .reg-form-inner { padding: 28px 16px 32px; }
    .reg-form-title { font-size: 22px; }
    .reg-form-sub { font-size: 13px; }
    .reg-fields { grid-template-columns: 1fr; }
    .pw-rules { grid-template-columns: 1fr; }
    .reg-stepper-label { display: none; }
    .reg-nav { flex-direction: column-reverse; }
    .reg-nav .btn-reg-next, .reg-nav .btn-reg-back { width: 100%; justify-content: center; }
    .reg-nav .grow { display: none; }
}

/* RTL support */
body.rtl .reg-wrap { flex-direction: row-reverse; }
@media (max-width: 1024px) { body.rtl .reg-wrap { flex-direction: column; } }
body.rtl .reg-stats-bar { flex-direction: row-reverse; }
body.rtl .reg-eyebrow { flex-direction: row-reverse; }
body.rtl .reg-pills { align-items: center; }
body.rtl .reg-pill { flex-direction: row-reverse; }
body.rtl .reg-nav { flex-direction: row-reverse; }
body.rtl .btn-reg-role i, body.rtl .btn-reg-next i { transform: scaleX(-1); }
body.rtl .btn-reg-role:hover i, body.rtl .btn-reg-next:hover i { transform: scaleX(-1) translateX(-4px); }
body.rtl .btn-reg-back:hover i { transform: scaleX(-1) translateX(3px); }
