/* Estilos específicos para a página de cadastro */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.cadastro-container {
    max-width: 800px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
    animation: slideUp 0.6s ease;
}

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

.cadastro-header {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.progress-steps {
    display: flex;
    gap: 20px;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step.completed .step-number::after {
    content: '?';
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.step.active .step-label {
    opacity: 1;
    font-weight: 600;
}

.cadastro-content {
    padding: 40px;
}

.cadastro-form-container,
.verificacao-container,
.completar-cadastro-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-header,
.verificacao-header,
.completar-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2,
.verificacao-header h2,
.completar-header h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-header p,
.verificacao-header p,
.completar-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.verificacao-header {
    margin-bottom: 40px;
}

.verificacao-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    z-index: 2;
}

.input-group input,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-color);
    font-family: inherit;
}

.input-group input {
    padding-left: 45px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 2;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-terms {
    margin: 25px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    min-width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-large {
    padding: 15px 25px;
    font-size: 1.1rem;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-link p {
    color: var(--text-light);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.verificacao-form {
    text-align: center;
}

.verificacao-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.verificacao-actions p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Tipo seleção */
.tipo-selecao {
    margin-bottom: 30px;
    text-align: center;
}

.tipo-selecao h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tipo-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tipo-btn {
    flex: 1;
    max-width: 200px;
    padding: 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.tipo-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tipo-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.tipo-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.tipo-btn span {
    font-weight: 600;
}

/* Formulários por tipo */
.form-tipo {
    margin-bottom: 30px;
}

.form-tipo h4 {
    color: var(--secondary-color);
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.form-tipo h4:first-child {
    margin-top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .cadastro-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .cadastro-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .progress-steps {
        width: 100%;
        justify-content: center;
    }
    
    .cadastro-content {
        padding: 30px 20px;
    }
    
    .tipo-buttons {
        flex-direction: column;
    }
    
    .tipo-btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .form-header h2,
    .verificacao-header h2,
    .completar-header h2 {
        font-size: 1.5rem;
    }
}