/* ========================================
   SIGNUP PAGE STYLES — Multi-step flow
   ======================================== */

.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    color: white;
    margin-bottom: 16px;
}

/* ========================================
   SIGNUP CARD
   ======================================== */
.signup-card {
    max-width: 440px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* ========================================
   STEP INDICATOR
   ======================================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-dot.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    transform: scale(1.2);
}

.step-dot.completed {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.step-connector {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    transition: background 0.4s ease;
}

.step-connector.completed {
    background: rgba(16, 185, 129, 0.5);
}

/* ========================================
   STEP PANELS
   ======================================== */
.step-panel {
    display: none;
    animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-panel.active {
    display: block;
}

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

.step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    line-height: 1.5;
}

.step-subtitle strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ========================================
   FORM ELEMENTS (shared)
   ======================================== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-input.invalid {
    border-color: #ef4444;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    line-height: 1.4;
}

.form-hint.error {
    color: #fca5a5;
}

/* Submit Button */
.signup-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    margin-top: 4px;
}

.signup-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-blue-light);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.signup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.signup-btn.loading {
    pointer-events: none;
}

/* Form Message */
.form-message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    min-height: 0;
    transition: all 0.3s ease;
}

.form-message:empty {
    display: none;
}

.form-message.error {
    color: #fca5a5;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

.form-message.success {
    color: #6ee7b7;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

/* ========================================
   STEP 2 — VERIFICATION CODE INPUTS
   ======================================== */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 28px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    transition: all 0.2s ease;
    caret-color: var(--accent-blue-light);
}

.code-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.code-input.filled {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.code-input.invalid {
    border-color: #ef4444;
    animation: codeShake 0.4s ease;
}

@keyframes codeShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.resend-link {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.resend-link a {
    color: var(--accent-blue-light);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.resend-link a:hover {
    color: white;
}

.resend-link a.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   STEP 3 — TEAM SETUP
   ======================================== */
.server-preview {
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 13px;
    color: var(--accent-blue-light);
    letter-spacing: 0.02em;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ========================================
   STEP 4 — PROVISIONING
   ======================================== */
.provisioning-container {
    text-align: center;
    padding: 16px 0;
}

.provisioning-orb {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    position: relative;
}

.provisioning-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #60a5fa, #3b82f6 50%, #1d4ed8);
    animation: orbPulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.provisioning-orb::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(96, 165, 250, 0.6);
    border-right-color: rgba(96, 165, 250, 0.3);
    animation: orbSpin 1.5s linear infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes orbSpin {
    to { transform: rotate(360deg); }
}

.provisioning-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.provisioning-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    line-height: 1.5;
}

.progress-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 2px;
    width: 10%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-step-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   INLINE STATES (waitlist, login redirect)
   ======================================== */
.inline-state {
    text-align: center;
    padding: 8px 0;
    animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.inline-state-icon {
    margin-bottom: 20px;
    color: #6ee7b7;
}

.inline-state h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    color: white;
    margin-bottom: 12px;
}

.inline-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.inline-state strong {
    color: white;
}

.inline-state a {
    color: var(--accent-blue-light);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   FORM FOOTER
   ======================================== */
.form-footer {
    margin-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.form-footer a {
    color: var(--accent-blue-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: white;
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 480px) {
    .signup-card {
        padding: 28px 20px;
    }

    .code-input {
        width: 44px;
        height: 54px;
        font-size: 20px;
        border-radius: 12px;
    }

    .code-inputs {
        gap: 8px;
    }
}
