/**
 * SIGNUP BASIC - Create Account Page
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { height: -webkit-fill-available; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.onboarding-page {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.onboarding-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(13, 148, 136, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.onboarding-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,0.01) 49%, rgba(255,255,255,0.01) 51%, transparent 52%),
                      linear-gradient(-30deg, transparent 48%, rgba(255,255,255,0.01) 49%, rgba(255,255,255,0.01) 51%, transparent 52%);
    background-size: 120px 120px;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes gradientShift { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 1; transform: scale(1.1); } }

.onboarding-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; position: relative; z-index: 10; }

.onboarding-logo { position: absolute; top: 32px; left: 32px; z-index: 10; }
.onboarding-logo a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent; }
.onboarding-logo .logo-full { height: 54px; width: auto; }

.onboarding-card { width: 100%; max-width: 480px; background: rgba(255, 255, 255, 0.98); border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden; backdrop-filter: blur(10px); }
.onboarding-card::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #0d9488 100%); }
.onboarding-card-inner { padding: 40px 36px 36px; }
.onboarding-card-header { text-align: center; margin-bottom: 28px; }
.onboarding-card-title { font-size: 26px; font-weight: 700; color: #111827; margin: 0 0 8px; letter-spacing: -0.02em; }
.onboarding-card-subtitle { font-size: 15px; color: #6b7280; margin: 0; }
.onboarding-card-footer { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid #f3f4f6; }
.onboarding-card-footer p { margin: 0; font-size: 14px; color: #6b7280; }
.onboarding-card-footer a { color: #0d9488; text-decoration: none; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.onboarding-card-footer a:hover { text-decoration: underline; }

.signup-progress { margin-bottom: 28px; }
.signup-progress-inner { display: flex; align-items: flex-start; justify-content: center; }
.progress-step { display: flex; flex-direction: column; align-items: center; }
.progress-step-indicator { width: 32px; height: 32px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.progress-step-indicator svg { width: 16px; height: 16px; }
.progress-step-label { font-size: 11px; font-weight: 500; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.02em; }
.progress-step.active .progress-step-indicator { background: #111827; color: #fff; }
.progress-step.active .progress-step-label { color: #111827; }
.progress-step.completed .progress-step-indicator { background: #0d9488; color: #fff; }
.progress-step.completed .progress-step-label { color: #0d9488; }
.progress-connector { width: 40px; height: 2px; background: #e5e7eb; margin: 0 6px; margin-top: 15px; }
.progress-connector.completed { background: #0d9488; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 8px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-input:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1); }
.form-input::placeholder { color: #9ca3af; }

.password-requirements { margin-top: 10px; font-size: 13px; }
.password-requirements .requirement { color: #9ca3af; padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.password-requirements .requirement::before { content: '○'; font-size: 8px; }
.password-requirements .requirement.met { color: #0d9488; }
.password-requirements .requirement.met::before { content: '●'; }

.alert { padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #111827 0%, #1f2937 100%); color: #fff; }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.btn-full { width: 100%; }
.form-actions { margin-top: 24px; }

.particle { position: fixed; width: 4px; height: 4px; background: rgba(13, 148, 136, 0.4); border-radius: 50%; animation: float 15s infinite ease-in-out; pointer-events: none; z-index: 1; }
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 90%; top: 50%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 5%; top: 60%; animation-delay: 5s; animation-duration: 11s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(10px) scale(1.2); opacity: 0.6; }
    50% { transform: translateY(-10px) translateX(-10px) scale(0.8); opacity: 0.4; }
    75% { transform: translateY(-40px) translateX(5px) scale(1.1); opacity: 0.5; }
}

.glow-orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: orbPulse 6s ease-in-out infinite; pointer-events: none; z-index: 1; }
.glow-orb.top-left { top: -100px; left: -100px; width: 300px; height: 300px; background: #0d9488; }
.glow-orb.bottom-right { bottom: -100px; right: -100px; width: 400px; height: 400px; background: #0d9488; animation-delay: 3s; }

@keyframes orbPulse { 0%, 100% { opacity: 0.2; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.1); } }

.onboarding-footer { padding: 24px; text-align: center; position: relative; z-index: 10; }
.onboarding-footer p { font-size: 11px; color: rgba(255, 255, 255, 0.35); margin: 0; line-height: 1.6; }
.onboarding-footer p + p { margin-top: 8px; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .particle,
    .glow-orb,
    .onboarding-page::before {
        animation: none !important;
    }
    .btn-primary:hover:not(:disabled) {
        transform: none;
    }
}

@media (max-width: 768px) {
    .onboarding-main { padding: 80px 16px 24px; justify-content: flex-start; }
    .onboarding-logo { top: 20px; left: 20px; }
    .onboarding-logo .logo-full { height: 28px; }
    .onboarding-card { border-radius: 16px; }
    .onboarding-card-inner { padding: 28px 20px 24px; }
    .onboarding-card-header { margin-bottom: 20px; }
    .onboarding-card-title { font-size: 22px; }
    .progress-step-indicator { width: 28px; height: 28px; font-size: 12px; }
    .progress-step-label { font-size: 10px; }
    .progress-connector { width: 24px; }
    .glow-orb.top-left { width: 200px; height: 200px; }
    .glow-orb.bottom-right { width: 250px; height: 250px; }
    .onboarding-footer { padding: 20px 16px; }
    .btn { min-height: 48px; }
}

@media (max-width: 480px) {
    .progress-step-label { display: none; }
    .progress-connector { margin-top: 14px; }
}

@media (max-height: 700px) {
    .onboarding-main { justify-content: flex-start; padding-top: 72px; }
    .onboarding-card-header { margin-bottom: 16px; }
    .form-group { margin-bottom: 14px; }
    .form-actions { margin-top: 16px; }
    .onboarding-card-footer { margin-top: 20px; padding-top: 16px; }
}