/* ============================================================================
   PRIVACY VAULT - SIGNUP MULTI-STEP STYLES V2.0 (OAuth Only)
   Navy Blue #1e3a8a - Patente BR 10 2025 022120 9
   ============================================================================ */

/* ⭐ FUNDO NAVY BLUE! */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* OAuth Info Box */
.oauth-info {
    margin: 20px 0;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #1e3a8a;
    border-radius: 12px;
    padding: 24px;
}

.info-box h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.info-box p {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.info-box ul {
    margin: 12px 0;
    padding: 0 0 0 24px;
    color: #374151;
}

.info-box li {
    margin: 8px 0;
    line-height: 1.6;
}

.info-highlight {
    background-color: white;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    font-weight: 600;
    color: #1e3a8a !important;
    margin-top: 16px !important;
}

.oauth-next {
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    font-weight: 500;
    color: #1e3a8a;
    margin: 16px 0;
}

/* Container */
.signup-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.progress-steps .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.step.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step.completed .step-number::before {
    content: '✓';
}

.step-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: white;
    font-weight: 600;
}

/* Header */
.signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-header h1 {
    font-size: 32px;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.signup-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.signup-header #currentStep {
    color: white;
    font-weight: 600;
}

/* Form - FUNDO BRANCO! */
.signup-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-step h2 {
    color: #1e3a8a;
    font-size: 24px;
    margin: 0 0 24px 0;
    font-weight: 600;
}

.form-step h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* ⭐ FIX CRÍTICO: COR DO TEXTO DOS INPUTS! */
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;  /* ✅ TEXTO PRETO VISÍVEL! */
    background-color: white;  /* ✅ FUNDO BRANCO! */
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Placeholder */
.form-group input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    color: #111827;  /* ✅ TEXTO AINDA MAIS ESCURO NO FOCUS! */
}

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

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

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

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-back {
    background-color: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-back:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Turnstile */
.cf-turnstile {
    margin: 20px 0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-message h2 {
    color: #1e3a8a;
    font-size: 28px;
    margin: 0 0 16px 0;
}

.success-message p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.success-message strong {
    color: #1e3a8a;
}

.btn-primary {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

/* Footer */
.signup-footer {
    text-align: center;
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.signup-footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

.signup-footer .patent {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.signup-footer .patent strong {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-container {
        margin: 20px auto;
        padding: 16px;
    }

    .signup-form {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .progress-steps {
        gap: 6px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .signup-header h1 {
        font-size: 24px;
    }

    .form-step h2 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

/* ============================================================================
   END OF STYLES
   🎨 Navy Blue Background + White Form = PERFEITO!
   ============================================================================ */
