* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-pink: #ff4d94;
    --dark-bg: #0a0a0a;
    --off-white: #fafafa;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-light: #e5e5e5;
    --success-green: #4ade80;
    --error-red: #ef4444;
    --warning-yellow: #fbbf24;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: white;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.hero-wrapper {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #ff4d94 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 77, 148, 0.1);
    animation: float 20s infinite ease-in-out;
}

.float-element:nth-child(1) { width: 300px; height: 300px; top: -150px; right: -100px; animation-delay: 0s; }
.float-element:nth-child(2) { width: 200px; height: 200px; bottom: -100px; left: -50px; animation-delay: 7s; }
.float-element:nth-child(3) { width: 150px; height: 150px; top: 50%; right: 10%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    transition: all 0.3s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled { padding: 16px 5%; background: rgba(10, 10, 10, 0.98); }

.logo {
    font-size: 28px; font-weight: 800; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: -0.5px;
}
.logo .white-text { color: white; }
.logo .pink-text { color: var(--primary-pink); }
.logo:hover { transform: translateX(5px); }

.auth-buttons { display: flex; gap: 12px; }

.btn {
    padding: 12px 28px; border-radius: 50px; border: none;
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; display: inline-block;
}

.btn-ghost {
    background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px);
}

.btn-primary { background: white; color: var(--text-dark); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2); }

.form-container-wrapper {
    padding: 120px 5% 60px; max-width: 1200px; margin: 0 auto;
    display: flex; gap: 60px; align-items: flex-start;
}

select.form-input.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff4d94' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input option {
    background-color: #1a1a1a !important;
    color: white !important;
    padding: 12px;
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-image: none;
}

.left-content { flex: 1; max-width: 500px; padding-top: 40px; }

.section-label {
    color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 4vw, 52px); font-weight: 300; color: white;
    line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;
}

/* CORREÇÃO DO GRADIENTE */
.hero-title strong {
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--primary-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 18px; color: rgba(255, 255, 255, 0.8);
    line-height: 1.5; font-weight: 300; margin-bottom: 32px;
}

.security-features { display: flex; flex-direction: column; gap: 16px; }
.security-item { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.security-icon {
    width: 24px; height: 24px; background: rgba(74, 222, 128, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--success-green); flex-shrink: 0;
}

.right-content { flex: 1; max-width: 600px; }

.form-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
    padding: 48px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-header { text-align: center; margin-bottom: 40px; }
.form-title { font-size: 28px; font-weight: 600; color: white; margin-bottom: 8px; }
.form-subtitle { color: rgba(255, 255, 255, 0.6); font-size: 15px; }

.progress-steps {
    display: flex; justify-content: space-between; margin-bottom: 40px; position: relative;
}
.progress-line {
    position: absolute; top: 20px; left: 0; right: 0; height: 2px;
    background: rgba(255, 255, 255, 0.1); z-index: 0;
}
.progress-line-active {
    position: absolute; top: 20px; left: 0; height: 2px;
    background: var(--primary-pink); z-index: 1; transition: width 0.3s ease;
}
.step {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; z-index: 2; position: relative;
}
.step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.5); font-weight: 600; transition: all 0.3s ease;
}
.step.active .step-circle {
    background: var(--primary-pink); border-color: var(--primary-pink); color: white;
}
.step.completed .step-circle {
    background: var(--success-green); border-color: var(--success-green); color: white;
}
.step-label { font-size: 12px; color: rgba(255, 255, 255, 0.5); font-weight: 500; }
.step.active .step-label, .step.completed .step-label { color: rgba(255, 255, 255, 0.9); }

.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    color: rgba(255, 255, 255, 0.9); font-weight: 500; margin-bottom: 8px;
    font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.label-info {
    width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5); display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; cursor: help; position: relative;
}
.label-info:hover::after {
    content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%); background: rgba(0, 0, 0, 0.9); color: white;
    padding: 8px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap;
    max-width: 200px; margin-bottom: 4px; z-index: 10;
}

.form-input, .form-select, .form-textarea {
    padding: 14px 18px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
    font-size: 15px; transition: all 0.2s ease; background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9); font-family: inherit; height: 48px; width: 100%;
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-input:focus, .form-select:focus {
    outline: none; border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(255, 77, 148, 0.1);
}
.form-input.error { border-color: var(--error-red); }
.form-input.success { border-color: var(--success-green); }

.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-right: 40px; }
.input-icon {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4); transition: color 0.2s ease;
}
.input-icon.loading { animation: spin 1s linear infinite; }
.input-icon.success { color: var(--success-green); }
.input-icon.error { color: var(--error-red); }
@keyframes spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

.validation-message { font-size: 12px; margin-top: 4px; display: none; }
.validation-message.show { display: block; }
.validation-message.error { color: var(--error-red); }
.validation-message.success { color: var(--success-green); }

/* Password Strength */
.password-strength { margin-top: 8px; display: none; }
.password-strength.show { display: block; }
.strength-bar { height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; transition: width 0.3s ease, background 0.3s ease; width: 0; }
.strength-fill.weak { width: 33%; background: var(--error-red); }
.strength-fill.medium { width: 66%; background: var(--warning-yellow); }
.strength-fill.strong { width: 100%; background: var(--success-green); }
.strength-text { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* File Upload */
.file-upload-wrapper { position: relative; }
.file-input { display: none; }
.file-label {
    display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px;
    border: 2px dashed rgba(255, 77, 148, 0.3); border-radius: 16px;
    background: rgba(255, 255, 255, 0.02); cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}
.file-label.dragover { border-color: var(--primary-pink); background: rgba(255, 77, 148, 0.05); }
.file-label:hover { border-color: var(--primary-pink); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.upload-icon {
    width: 60px; height: 60px; padding: 12px; background: rgba(255, 77, 148, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; color: rgba(255, 255, 255, 0.7);
}
.file-label:hover .upload-icon { transform: translateY(-5px); color: var(--primary-pink); }
.upload-icon svg { width: 100%; height: 100%; }
.file-text { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.file-main-text { color: rgba(255, 255, 255, 0.9); font-weight: 500; font-size: 16px; }
.file-sub-text { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.file-formats {
    color: rgba(255, 255, 255, 0.4); font-size: 12px; margin-top: 4px;
    padding: 6px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 20px;
}

.file-preview {
    margin-top: 16px; padding: 16px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; display: none;
}
.file-preview.show { display: block; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-info { display: flex; align-items: center; gap: 12px; }
.preview-icon {
    width: 40px; height: 40px; background: rgba(255, 77, 148, 0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--primary-pink);
}
.preview-details { display: flex; flex-direction: column; gap: 2px; }
.preview-name { color: rgba(255, 255, 255, 0.9); font-weight: 500; font-size: 14px; }
.preview-size { color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.preview-remove {
    padding: 8px 16px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px; color: var(--error-red); font-size: 13px; cursor: pointer; transition: all 0.2s ease;
}
.preview-remove:hover { background: rgba(239, 68, 68, 0.2); }
.preview-image {
    width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px;
    background: rgba(0, 0, 0, 0.2); padding: 8px;
}

/* Camera */
.capture-options { display: flex; gap: 12px; margin-top: 16px; }
.capture-btn {
    flex: 1; padding: 12px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; color: rgba(255, 255, 255, 0.8);
    font-size: 14px; cursor: pointer; transition: all 0.2s ease; display: flex;
    align-items: center; justify-content: center; gap: 8px;
}
.capture-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.camera-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); z-index: 2000; align-items: center; justify-content: center;
}
.camera-modal.show { display: flex; }
.camera-container {
    background: var(--dark-bg); border-radius: 20px; padding: 24px; max-width: 600px; width: 90%;
}
.camera-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.camera-title { color: white; font-size: 18px; font-weight: 600; }
.camera-close {
    width: 32px; height: 32px; background: rgba(255, 255, 255, 0.1); border: none;
    border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.2s ease;
}
.camera-close:hover { background: rgba(255, 255, 255, 0.2); }
#video { width: 100%; border-radius: 12px; background: black; }
.camera-controls { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.camera-button {
    padding: 12px 24px; background: var(--primary-pink); border: none; border-radius: 50px;
    color: white; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.camera-button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 77, 148, 0.3); }

/* Form Buttons */
.form-actions { display: flex; gap: 16px; margin-top: 32px; }
.btn-submit {
    flex: 1; padding: 16px 32px; border-radius: 50px; border: none; font-size: 16px;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex;
    align-items: center; justify-content: center; gap: 8px;
}
.btn-submit-primary { background: var(--primary-pink); color: white; }
.btn-submit-primary:hover:not(:disabled) {
    background: #ff3d84; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 77, 148, 0.3);
}
.btn-submit-secondary { background: transparent; color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-submit-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.message {
    padding: 14px 20px; border-radius: 12px; margin-bottom: 20px; display: none;
    font-size: 14px; font-weight: 500; align-items: center; gap: 12px;
}
.message.show { display: flex; }
.message.success { background: rgba(74, 222, 128, 0.1); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.2); }
.message.error { background: rgba(239, 68, 68, 0.1); color: #e61212; border: 1px solid rgba(239, 68, 68, 0.2); }
.message.warning { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }

.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite;
}

@media (max-width: 968px) {
    .form-container-wrapper { flex-direction: column; padding: 100px 20px 40px; }
    .left-content { max-width: 100%; padding-top: 0; text-align: center; }
    .security-features { align-items: center; }
    .right-content { max-width: 100%; width: 100%; }
    .form-card { padding: 32px 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .progress-steps { gap: 8px; }
    .step-label { display: none; }
}

@media (max-width: 768px) {
    header { padding: 16px 20px; }
    .logo { font-size: 24px; }
    .btn { padding: 10px 20px; font-size: 14px; }
    .hero-title { font-size: 32px; }
    .form-actions, .capture-options { flex-direction: column; }
    .btn-submit { width: 100%; }
}

#estado, #cidade, #tipoDocumento, #autenticacao2FA, #perguntaSeguranca {
    background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px;
    padding: 14px 18px; font-size: 15px; font-family: inherit;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
#estado option, #cidade option, #tipoDocumento option, #autenticacao2FA option, #perguntaSeguranca option {
    background: #1a1a1a; color: white;
}