/* ============================================
   TACTILE REGISTER - Split Layout
   ============================================

   Two-panel trust-building register experience:
   - Left/top: Context panel with progress + trust
   - Right/below: Form card
   ============================================ */

/* ===========================
   1. PAGE WRAPPER
   =========================== */

.tactile-register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(
        160deg,
        #f8fafc 0%,
        #f1f5f9 40%,
        #eef2ff 100%
    );
}

/* ===========================
   2. SPLIT LAYOUT (CSS Grid)
   =========================== */

.tactile-register-split {
    display: grid;
    grid-template-columns: 360px 1fr;
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    padding: 32px 24px;
    gap: 0;

    /* Shared outer card wrapping both panels */
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        8px 8px 32px rgba(67, 56, 202, 0.08),
        -4px -4px 16px rgba(255, 255, 255, 0.9),
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    overflow: hidden;
}

/* ===========================
   3. CONTEXT PANEL (Left)
   =========================== */

.tactile-register-context {
    background: linear-gradient(
        160deg,
        rgba(67, 56, 202, 0.06) 0%,
        rgba(99, 102, 241, 0.1) 100%
    );
    padding: 40px 32px;
    border-right: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Badge pill */
.tactile-register-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(67, 56, 202, 0.08);
    border: 1px solid rgba(67, 56, 202, 0.15);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sapphire-dark, #312e81);
    margin-bottom: 20px;
}

.tactile-register-context-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sapphire-main, #4338ca);
    flex-shrink: 0;
}


.tactile-register-context-headline {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.25;
}

.tactile-register-context-subline {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ===========================
   4. PROGRESS PILLS
   =========================== */

.tactile-register-progress {
    margin-bottom: 28px;
}

/* Desktop: vertical list */
.tactile-register-progress-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.tactile-register-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    gap: 14px;
    padding-bottom: 20px;
}

.tactile-register-step:last-child {
    padding-bottom: 0;
}

/* Connector line — vertical, below the number circle */
.tactile-register-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 13px;
    width: 1px;
    height: calc(100% + 8px);
    background: rgba(99, 102, 241, 0.25);
    z-index: 0;
}

.tactile-register-step-number {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    background: #e2e8f0;
    color: #94a3b8;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.tactile-register-step--active .tactile-register-step-number {
    background: var(--sapphire-main, #4338ca);
    color: #fff;
    box-shadow:
        0 2px 8px rgba(67, 56, 202, 0.35),
        0 0 0 3px rgba(67, 56, 202, 0.12);
}

.tactile-register-step-label {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    line-height: 28px; /* vertically centers with the number circle */
}

.tactile-register-step--active .tactile-register-step-label {
    color: var(--sapphire-main, #4338ca);
}

/* ===========================
   5. TRUST DISCLAIMERS
   =========================== */

.tactile-register-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 10px;
}

.tactile-register-trust-icon {
    flex-shrink: 0;
    color: var(--sapphire-main, #4338ca);
    margin-top: 1px;
}

.tactile-register-trust p {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Desktop: show in context panel, hide below form */
.tactile-register-trust--desktop {
    display: flex;
}

.tactile-register-trust--mobile {
    display: none;
}

/* ===========================
   6. FORM PANEL (Right)
   =========================== */

.tactile-register-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 32px;
    background: #ffffff;
}

/* Override AuthCardWrapper card styling inside the connected layout —
   the outer .tactile-register-split provides the card shadow */
.tactile-register-form-panel .tactile-auth-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    background: transparent;
}

/* ===========================
   7. FIELD LABELS
   =========================== */

.tactile-register-field-label {
    display: block;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    margin-top: 10px;
}

/* ===========================
   8. NO CREDIT CARD LINE
   =========================== */

.tactile-register-no-card {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin: 8px 0 0;
}

/* ===========================
   8b. NO CREDIT CARD LINE — mobile spacing
   =========================== */

@media (max-width: 899px) {
    .tactile-register-no-card {
        display: none;
    }
}

/* ===========================
   9. RESPONSIVE — Mobile (<900px)
   =========================== */

@media (max-width: 899px) {
    .tactile-register-split {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        border-radius: 20px;
        align-items: start;
    }

    .tactile-register-context {
        padding: 20px 20px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(99, 102, 241, 0.12);
        border-radius: 0;
    }

    .tactile-register-form-panel {
        padding: 24px 20px;
    }

    .tactile-register-context-headline {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    /* Hide subline on mobile for compactness */
    .tactile-register-context-subline {
        display: none;
    }

    .tactile-register-progress {
        margin-bottom: 0;
    }

    /* Mobile: switch back to horizontal */
    .tactile-register-progress-list {
        flex-direction: row;
        align-items: flex-start;
    }

    .tactile-register-step {
        flex-direction: column;
        align-items: center;
        flex: 1;
        gap: 0;
        padding-bottom: 0;
    }

    /* Horizontal connector on mobile */
    .tactile-register-step:not(:last-child)::after {
        top: 12px;
        left: 50%;
        width: 100%;
        height: 1px;
        background: rgba(99, 102, 241, 0.25);
    }

    .tactile-register-step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .tactile-register-step-label {
        font-size: 0.62rem;
        line-height: 1.2;
        text-align: center;
    }

    /* Trust: hide in context panel, show below form on mobile */
    .tactile-register-trust--desktop {
        display: none;
    }

    .tactile-register-trust--mobile {
        display: flex;
        max-width: 460px;
        width: 100%;
    }
}

/* ===========================
   10. REDUCED MOTION
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .tactile-register-step-number {
        transition: none;
    }
}
