/* ── Registration Page ── */
.reg-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Split Layout ── */
.reg-split {
    display: flex;
    flex: 1;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .reg-split {
        flex-direction: row;
    }
    .reg-left {
        width: 52%;
    }
    .reg-right {
        width: 48%;
    }
}

/* ── Left Column ── */
.reg-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .reg-left {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .reg-left {
        padding: 3rem 4rem;
    }
}

.reg-form-wrap {
    width: 100%;
    max-width: 440px;
}

/* ── Form Header ── */
.reg-header {
    margin-bottom: 2rem;
}

.reg-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.reg-header p {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}


/* ── Password Toggle ── */
.pwd-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground) / 0.5);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}

.pwd-toggle:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.5);
}

.pwd-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* ── Password Strength ── */
.pwd-strength {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.pwd-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: hsl(var(--border));
    transition: background 0.3s;
}

.pwd-strength-bar.active-weak { background: hsl(var(--destructive)); }
.pwd-strength-bar.active-fair { background: hsl(var(--warning)); }
.pwd-strength-bar.active-good { background: hsl(var(--success)); }
.pwd-strength-bar.active-strong { background: hsl(var(--success)); }

.pwd-strength-label {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s;
}

/* ── Name Row ── */
.reg-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reg-name-row .auth-field {
    margin-bottom: 1.25rem;
}


/* ── Checkboxes ── */
.reg-checks {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.reg-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.reg-check {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s;
    appearance: none;
    flex-shrink: 0;
    margin-top: 0.125rem;
    background: hsl(var(--background));
    position: relative;
}

.reg-check:hover {
    border-color: hsl(var(--primary) / 0.5);
}

.reg-check:checked {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.reg-check:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.reg-check-label a {
    color: hsl(var(--primary));
    font-weight: 600;
    text-decoration: none;
}

.reg-check-label a:hover {
    text-decoration: underline;
}

/* ── Divider ── */
.reg-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.reg-divider::before,
.reg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(var(--border));
}

.reg-divider span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

/* ── Sign In Link ── */
.reg-signin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    border: 1.5px solid hsl(var(--border));
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.reg-signin-link:hover {
    border-color: hsl(var(--primary) / 0.3);
    background: hsl(var(--primary) / 0.03);
    color: hsl(var(--primary));
}

/* ── Error Message ── */
.reg-error {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: hsl(var(--destructive) / 0.06);
    color: hsl(var(--destructive));
    border: 1px solid hsl(var(--destructive) / 0.12);
    margin-bottom: 1.25rem;
}

.reg-error svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ── Right Column ── */
.reg-right {
    display: none;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .reg-right {
        display: flex;
    }
}

.reg-right-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        hsl(var(--primary) / 0.03) 0%,
        hsl(var(--primary) / 0.06) 40%,
        hsl(var(--primary) / 0.02) 100%
    );
}

.reg-right-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.reg-right-glow-1 {
    top: -15%;
    right: -10%;
    background: hsl(var(--primary) / 0.1);
}

.reg-right-glow-2 {
    bottom: -10%;
    left: -15%;
    background: hsl(var(--primary) / 0.06);
}

.reg-right-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.reg-value {
    max-width: 420px;
}

/* ── Value Prop Badge ── */
.reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: hsl(var(--primary) / 0.08);
    border: 1px solid hsl(var(--primary) / 0.15);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
}

.reg-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--primary));
    animation: reg-pulse 2s ease-in-out infinite;
}

@keyframes reg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Value Prop Headline ── */
.reg-headline {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.reg-headline-accent {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(217 91% 60%) 50%, hsl(239 84% 67%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.reg-subtitle {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ── Dual Track Cards ── */
.reg-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.reg-track {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

.reg-track:hover {
    border-color: hsl(var(--primary) / 0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transform: translateX(4px);
}

.reg-track-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.reg-track-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.reg-track-icon.saas {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.reg-track-icon.marketing {
    background: hsl(280 70% 50% / 0.1);
    color: hsl(280 70% 50%);
}

.reg-track-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.125rem;
}

.reg-track-desc {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.45;
}

/* ── Feature List ── */
.reg-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 1rem;
}

.reg-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: hsl(var(--foreground) / 0.8);
    font-weight: 500;
}

.reg-feature-check {
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--success) / 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.reg-feature-check svg {
    width: 0.625rem;
    height: 0.625rem;
    color: hsl(var(--success));
    stroke-width: 3;
}

/* ── Trust Bar ── */
.reg-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.reg-trust svg {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary) / 0.5);
    flex-shrink: 0;
}

.reg-trust span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

