/* ============================================
   Fortis Brasil BANK - Design C6 Style
   Clean, Dark, Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-input: #222222;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent: #00c853;
    --accent-hover: #00e676;
    --accent-muted: rgba(0, 200, 83, 0.15);
    
    --border: #2a2a2a;
    --border-light: #333333;
    
    --error: #ff5252;
    --success: #00c853;
    
    /* Cores biométricas */
    --biometric: #9c27b0;
    --biometric-hover: #ab47bc;
    --biometric-muted: rgba(156, 39, 176, 0.15);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-logo {
    display: flex;
    align-items: center;
}

/* LOGO AUMENTADA */
.header-logo img {
    height: 160px;
    margin: -40px 0;
}

/* NAVEGAÇÃO ESCONDIDA */
.header-nav {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-header-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-header-outline:hover {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.btn-header-solid {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #000000;
    font-weight: 600;
}

.btn-header-solid:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 70px;
    }
    .header-nav {
        display: none !important;
    }
    .header-actions {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    
    /* Logo menor no mobile */
    .header-logo img {
        height: 100px;
        margin: -15px 0;
    }
    
    .main-container {
        height: auto;
        min-height: 100vh;
        padding-top: 70px;
        overflow: visible;
    }
    
    .form-side {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 24px 20px;
        overflow: visible;
    }
    
    .form-wrapper {
        max-width: 100%;
    }
    
    .card {
        padding: 24px 20px;
    }
    
    .card-header {
        margin-bottom: 20px;
    }
    
    .card-header h1 {
        font-size: 22px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .divisor {
        margin: 16px 0;
    }
    
    .page-footer {
        margin-top: 16px;
        padding-top: 14px;
    }
    
    .page-footer p {
        font-size: 10px;
    }
    
    .footer-links a {
        font-size: 10px;
    }
}

/* ============================================
   LAYOUT
   ============================================ */

.main-container {
    height: 100vh;
    display: flex;
    padding-top: 80px;
    overflow: hidden;
}

.form-side {
    width: 50%;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.form-side::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.form-side::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.form-side::-webkit-scrollbar {
    display: none;
}

.form-wrapper {
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.brand-side {
    width: 50%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
    opacity: 0.3;
}

.brand-side::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.5;
    border-radius: 0 4px 4px 0;
}

.brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image {
    width: 100%;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.brand-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .form-side {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 32px 24px;
    }
    .brand-side {
        display: none;
    }
    .main-container {
        height: auto;
        min-height: 100vh;
    }
    .form-wrapper {
        max-width: 520px;
    }
}

.brand-logo {
    display: none;
}

.brand-logo img {
    height: 64px;
}

.brand-content h2,
.brand-content > p,
.features-grid,
.stats-row {
    display: none;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-compact {
    min-height: auto;
    padding: 20px 24px;
}

.card-compact .card-header {
    margin-bottom: 16px;
}

.card-compact .card-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.card-compact .card-header p {
    font-size: 13px;
}

.card-compact .card-spacer {
    min-height: 12px;
    flex: 0;
}

.card-compact .btn-group {
    margin-top: 16px;
}

.card-compact .dica-box {
    margin: 16px 0 8px 0;
    padding: 10px 12px;
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, #00e676 50%, var(--accent) 100%);
}

.card-decoration-biometric {
    background: linear-gradient(90deg, var(--biometric) 0%, #673ab7 50%, var(--biometric) 100%);
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.card-icon-biometric {
    background: var(--biometric-muted);
}

.card-icon-biometric svg {
    stroke: var(--biometric);
}

.card-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FORMS
   ============================================ */

.secao {
    display: none;
}

.secao.ativa {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.required::after {
    content: ' *';
    color: var(--error);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all 0.2s;
    outline: none;
}

input:hover,
select:hover {
    border-color: var(--border-light);
}

input:focus,
select:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.input-group {
    position: relative;
}

.input-group input {
    padding-right: 48px;
}

.input-group .input-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.input-group .input-btn:hover {
    color: var(--text-secondary);
}

.input-group .input-btn svg {
    width: 20px;
    height: 20px;
}

.form-row {
    display: grid;
    gap: 12px;
}

.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 480px) {
    .form-row.cols-2,
    .form-row.cols-3 {
        grid-template-columns: 1fr;
    }
}

.checkbox-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-box span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-box a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-box a:hover {
    text-decoration: underline;
}

.erro {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.erro.visivel {
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.btn-success {
    background: var(--success);
    color: #000000;
}

.btn-success:hover {
    background: var(--accent-hover);
}

.btn-biometric {
    background: linear-gradient(135deg, var(--biometric), #673ab7);
    color: #ffffff;
}

.btn-biometric:hover {
    filter: brightness(1.1);
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   TIPO CONTA
   ============================================ */

.tipo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.tipo-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tipo-card:hover {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.tipo-card.selecionado {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.tipo-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.tipo-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
}

.tipo-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tipo-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   PROGRESS
   ============================================ */

.progress-container {
    margin-bottom: 20px;
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
}

.progress-step.ativo {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.progress-step.completo {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--accent);
}

.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ============================================
   UPLOAD
   ============================================ */

.upload-area {
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-input);
}

.upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.upload-area.tem-arquivo {
    border-color: var(--accent);
    border-style: solid;
}

.upload-area svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-area:hover svg {
    color: var(--accent);
}

.upload-area p {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-area .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.upload-area img {
    max-height: 60px;
    border-radius: 6px;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-selfie {
    max-width: 160px;
    margin: 0 auto;
}

.upload-area-sm {
    padding: 16px 12px;
}

.upload-area-sm svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.upload-area-sm p {
    font-size: 12px;
}

/* ============================================
   UPLOAD COM CÂMERA E ARQUIVO
   ============================================ */

.upload-section {
    margin-bottom: 12px;
}

.upload-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.upload-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.upload-box.tem-arquivo {
    border-color: var(--accent);
}

.upload-preview {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

.upload-preview img {
    max-height: 50px;
    max-width: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.upload-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.upload-placeholder svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.upload-placeholder span {
    font-size: 12px;
}

.upload-actions {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--bg-secondary);
}

.btn-upload {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-upload svg {
    width: 14px;
    height: 14px;
}

.btn-camera {
    background: var(--accent);
    color: #000;
    border: none;
}

.btn-camera:hover {
    background: var(--accent-hover);
}

.btn-file {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-file:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Selfie específico */
.upload-box-selfie {
    max-width: 280px;
    margin: 0 auto;
}

.upload-preview-selfie {
    height: 100px;
    background: linear-gradient(135deg, rgba(0,200,83,0.05), transparent);
}

.upload-placeholder-selfie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.selfie-icon {
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selfie-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent);
    opacity: 0.4;
}

.upload-placeholder-selfie span {
    font-size: 11px;
}

/* Tips compactos */
.selfie-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 12px;
    background: var(--accent-muted);
    border-radius: 8px;
    margin-bottom: 12px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.tip-item svg {
    width: 12px;
    height: 12px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================
   SELFIE COM DOCUMENTO (CADASTRO)
   ============================================ */

.selfie-instruction-box {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--accent-muted);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.selfie-example {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.selfie-example svg {
    width: 100%;
    height: 100%;
    color: rgba(0, 200, 83, 0.6);
}

.selfie-rules {
    flex: 1;
}

.selfie-rules h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 12px;
}

.selfie-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selfie-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
}

.selfie-rules li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.upload-area-selfie {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 3/4;
}

.selfie-instruction-compact {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .selfie-instruction-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .selfie-example {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   VERIFICAÇÃO FACIAL (LOGIN)
   ============================================ */

.biometric-container {
    padding: 20px 0;
}

.camera-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.camera-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Efeito espelho */
}

.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    pointer-events: none;
}

.face-outline {
    width: 100%;
    height: 100%;
    color: rgba(156, 39, 176, 0.6);
    animation: pulse-outline 2s ease-in-out infinite;
}

@keyframes pulse-outline {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.detection-status {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffa502;
    animation: blink 1s infinite;
}

.detection-status.detecting .status-dot {
    background: #0096ff;
}

.detection-status.success .status-dot {
    background: var(--success);
    animation: none;
}

.detection-status.error .status-dot {
    background: var(--error);
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.captured-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.captured-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.preview-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.btn-retry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retry:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.btn-retry svg {
    width: 14px;
    height: 14px;
}

.biometric-instructions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding: 16px;
    background: var(--biometric-muted);
    border-radius: 12px;
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.instruction-item svg {
    width: 20px;
    height: 20px;
    color: var(--biometric);
}

.instruction-item.active {
    color: var(--success);
}

.instruction-item.active svg {
    color: var(--success);
}

.verification-progress {
    margin-top: 20px;
    text-align: center;
}

.progress-bar-biometric {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill-biometric {
    height: 100%;
    background: linear-gradient(90deg, var(--biometric), #673ab7);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
}

.biometric-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-capture {
    background: linear-gradient(135deg, var(--biometric), #673ab7) !important;
    color: #fff !important;
}

.btn-capture:hover {
    filter: brightness(1.1);
}

.btn-verificar {
    background: linear-gradient(135deg, var(--success), #00a846) !important;
    color: #000 !important;
}

.btn-verificar:hover {
    filter: brightness(1.1);
}

.biometric-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.security-badge svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

@media (max-width: 640px) {
    .biometric-instructions {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .biometric-actions {
        flex-direction: column;
    }
    
    .biometric-actions .btn {
        width: 100%;
    }
}

/* ============================================
   CADASTRO HEADER
   ============================================ */

.cadastro-header {
    display: none;
}

.voltar-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    min-width: 70px;
}

.voltar-link:hover {
    opacity: 0.8;
}

.voltar-link svg {
    width: 16px;
    height: 16px;
}

.tipo-badge {
    background: var(--accent);
    color: #000;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 90px;
    text-align: center;
}

/* ============================================
   EXTRAS
   ============================================ */

.section-divider {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 24px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    color: var(--text-secondary);
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border);
}

.info-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
}

.dica-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.dica-box svg {
    width: 18px;
    height: 18px;
    color: #ffc107;
    flex-shrink: 0;
}

.dica-box span {
    font-size: 13px;
    color: rgba(255, 193, 7, 0.9);
    line-height: 1.4;
}

.requisitos {
    list-style: none;
    margin-top: 20px;
}

.requisitos li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.requisitos li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================
   DIVISOR
   ============================================ */

.divisor {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divisor::before,
.divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divisor span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Link voltar para login na tela de tipo */
.card > .mt-6 {
    margin-top: 20px;
}

.card > .mt-6 > a,
.mt-6 > a[href*="void"],
a[onclick*="voltarLogin"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    background: var(--accent) !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.card > .mt-6 > a:hover,
.mt-6 > a[href*="void"]:hover,
a[onclick*="voltarLogin"]:hover {
    background: var(--accent-hover) !important;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.ativo {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
}

.modal-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

.modal-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid var(--border);
    text-align: right;
    background: var(--bg-card);
    position: sticky;
    bottom: 0;
}

/* ============================================
   TOASTS
   ============================================ */

.toast-container {
    position: fixed;
    top: 96px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success { 
    background: var(--bg-card);
    border: 1px solid var(--success);
}

.toast-success svg {
    color: var(--success);
}

.toast-error { 
    background: var(--bg-card);
    border: 1px solid var(--error);
}

.toast-error svg {
    color: var(--error);
}

.toast-info { 
    background: var(--bg-card);
    border: 1px solid #0096ff;
}

.toast-info svg {
    color: #0096ff;
}

.toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .toast-container {
        left: 10px;
        right: 10px;
    }
    
    .toast {
        transform: translateY(-120%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */

.page-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 20px; }
.mb-4 { margin-bottom: 16px; }
.card-spacer { flex: 1; }

/* Spin animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   SMARTPHONES PEQUENOS
   ============================================ */

@media (max-width: 480px) {
    .header {
        height: 60px;
    }
    
    .header-logo img {
        height: 85px;
        margin: -12px 0;
    }
    
    .main-container {
        padding-top: 60px;
    }
    
    .form-side {
        min-height: calc(100vh - 60px);
        padding: 16px 14px;
    }
    
    .card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .card-header {
        margin-bottom: 16px;
    }
    
    .card-header h1 {
        font-size: 20px;
    }
    
    .card-header p {
        font-size: 13px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    select {
        padding: 11px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .btn {
        padding: 11px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .divisor {
        margin: 14px 0;
    }
    
    .divisor span {
        font-size: 12px;
    }
    
    .page-footer {
        margin-top: 14px;
        padding-top: 12px;
    }
    
    .checkbox-box span {
        font-size: 13px;
    }
    
    /* Progress steps mobile */
    .progress-container {
        margin-bottom: 16px;
    }
    
    .progress-step {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .voltar-link {
        font-size: 11px;
    }
    
    .tipo-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
    
    /* Tipo conta mobile */
    .tipo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tipo-card {
        padding: 16px 14px;
    }
    
    .tipo-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .tipo-card h3 {
        font-size: 14px;
    }
    
    .tipo-card p {
        font-size: 12px;
    }
    
    /* Upload mobile */
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 16px 12px;
    }
    
    .selfie-tips {
        gap: 6px 12px;
        padding: 8px 10px;
    }
    
    .tip-item {
        font-size: 10px;
    }
}