/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Logo e cabeçalho */
.logo h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.welcome {
    text-align: center;
    margin-bottom: 30px;
}

.welcome h2 {
    color: #333;
    margin-bottom: 10px;
}

.welcome p {
    color: #666;
    font-size: 1.1em;
}

/* Barra de progresso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Cabeçalho das etapas */
.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.step-header h3 {
    color: #666;
    font-weight: normal;
    font-size: 1.2em;
}

/* Visão geral das etapas */
.steps-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.step-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    line-height: 30px;
    margin: 0 auto 8px;
    font-weight: bold;
}

.step-text {
    font-size: 0.9em;
    color: #666;
}

/* Formulários */
.form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Câmera */
.camera-container {
    margin-bottom: 20px;
    text-align: center;
}

.camera-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
}

.camera-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.camera-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

#video {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin-bottom: 15px;
}

#photo {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Conteúdo de sucesso */
.success-content {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.success-screen {
    text-align: center;
    padding: 20px;
}

.success-screen h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 2em;
}

.success-details {
    margin: 20px 0;
    color: #666;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Erro */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Responsividade */
@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }
    
    .steps-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .camera-controls {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .steps-overview {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 2em;
    }
} 