/* ============================================
   ESTILOS DA PÁGINA DE REGISTRO
   ============================================ */

/* Tabs de Tipo de Pessoa */
.register-type-tabs {
    margin-bottom: 30px;
}

.register-type-tabs .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.register-type-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.register-type-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.register-type-tabs .nav-link.active {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Título da Página */
.auth-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Box do Formulário */
.box-body {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Seções do Formulário */
.form-section {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.form-section h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.form-section p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* Form Groups */
.form-row {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Form Controls */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: 45px;
    line-height: 1.5;
}

/* Textarea com altura diferenciada */
.form-control textarea,
textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Small Text Helper */
.form-group small.text-muted {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Custom Checkbox/Radio */
.custom-control-label {
    font-size: 15px;
    color: #495057;
    padding-left: 5px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

/* Newsletter Section */
.newsletter-section {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.newsletter-section h4 {
    color: #004085;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Botão de Submit */
.btn-custom {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    border-radius: 6px;
}

.btn-custom:hover {
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* File Input */
input[type="file"].form-control {
    padding: 8px 15px;
}

/* Select */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px !important;
    cursor: pointer;
    height: auto !important;
    min-height: 45px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

select.form-control option {
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

/* Mensagens de Erro/Sucesso */
.alert {
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Responsividade */
@media (max-width: 768px) {
    .register-type-tabs .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .box-body {
        padding: 20px;
    }
    
    .form-section {
        padding: 12px 15px;
    }
    
    .btn-custom {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Loading State */
.btn-custom.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-custom.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

/* Required Field Indicator */
.form-group.required label::after {
    content: ' *';
    color: #dc3545;
}

/* Input com Ícone */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    color: #6c757d;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

/* Tabs Content */
.tab-content {
    padding-top: 20px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}