/* ============================================
   Jesto Signup Page - Premium Design System
   Matches: header-footer.css + style.css theme
   Primary: #0030DB | Text: #1D1D1F | Muted: #6E6E73
   ============================================ */

/* --- Design Tokens (matching site root) --- */
:root {
    --primary: #0030DB;
    --primary-hover: #0025A8;
    --primary-light: rgba(0, 48, 219, 0.06);
    --secondary: #0F172A;
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --text-light: #94A3B8;
    --border: #E5E5E5;
    --bg-white: #FFFFFF;
    --bg-alt: #F5F5F7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --header-height: 90px;
    --success: #10B981;
    --error: #EF4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Icons fix */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT: Full-height split screen
   ============================================ */
.signup-main {
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    overflow: hidden;
}

.signup-container {
    display: flex;
    height: 100%;
    background: #FFFFFF;
}

/* ============================================
   LEFT: Visual Branding Panel
   ============================================ */
.visual-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: visible; /* Allows gradients to bleed into the center normally */
    padding: 4rem;
    color: var(--text-main);
}

.visual-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: blobMove 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 48, 219, 0.3);
    top: -150px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.25);
    bottom: -100px;
    right: -80px;
}

@keyframes blobMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, 20px) scale(1.05); }
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
}

.visual-content-inner {
    text-align: left;
}

.visual-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    letter-spacing: -0.03em;
}

.visual-title span {
    color: var(--primary);
}

.visual-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 420px;
}

.hero-trust {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    z-index: 2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text-light);
}

/* ============================================
   RIGHT: Signup Form Panel
   ============================================ */
.form-section {
    flex: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 460px;
}

/* Form Header */
.premium-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.premium-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ============================================
   STEPS INDICATOR
   ============================================ */
.steps-indicator {
    display: flex;
    background: var(--bg-alt);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1.75rem;
    gap: 4px;
}

.step-item {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.step-item.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.step-item.completed {
    color: var(--success);
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   FORM CARD (Glass Panel)
   ============================================ */
.glass-panel {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-header .material-symbols-outlined {
    font-size: 18px;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.form-group-grid {
    display: grid;
    gap: 1.25rem;
}

.premium-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.premium-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.premium-input::placeholder {
    color: #C7C7CC;
}

.premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.premium-input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.error-text {
    color: var(--error);
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 48, 219, 0.2);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-btn .material-symbols-outlined {
    font-size: 20px;
}

.secondary-btn {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    margin-top: 0.75rem;
}

.secondary-btn:hover,
.submit-btn.secondary-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: none;
}

/* ============================================
   STATUS MESSAGES
   ============================================ */
.message-box {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-top: 1rem;
    line-height: 1.5;
}

.message-error {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    color: #991B1B;
}

.message-success {
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    color: #166534;
}

/* ============================================
   FOOTER TEXT
   ============================================ */
.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal .glass-panel {
    max-width: 460px;
    width: 90%;
    text-align: center;
    padding: 2.5rem;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modal-text {
    margin: 1rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-text strong {
    color: var(--primary);
    font-weight: 700;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-cancel {
    margin-top: 1.25rem;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.modal-cancel:hover {
    color: var(--primary);
}

/* Suggestion Chips */
.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.suggestion-chip {
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.suggestion-chip:hover,
.suggestion-chip.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 48, 219, 0.2);
}

.modal-close-btn {
    width: auto !important;
    padding: 12px 32px !important;
    margin: 0 auto !important;
    border-radius: var(--radius-sm);
}

.status-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
    display: none !important;
}

.mt-1 { margin-top: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .signup-container {
        flex-direction: column;
        height: auto;
    }

    .signup-main {
        height: auto;
        overflow: auto;
    }

    .visual-section {
        min-height: 350px;
        padding: 3rem 2rem;
    }

    .form-section {
        padding: 2.5rem 1.5rem;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    .visual-section {
        min-height: 280px;
        padding: 2.5rem 1.5rem;
    }

    .visual-title {
        font-size: 2rem;
    }

    .form-section {
        padding: 2rem 1.25rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .hero-trust {
        display: none;
    }
}