/* Estilos para a página de cadastro */
.register-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.register-card .card-body {
    padding: 2rem;
}

.register-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.register-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Seções especiais */
.user-type-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #007bff;
}

.user-type-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.producer-options-section {
    background: #e8f4f8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #17a2b8;
}

.producer-options-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.producer-options-section.show {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}

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

/* Checkboxes customizados */
.form-check {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -2rem;
    margin-top: 0.1rem;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #023f200%, #1a5a2f 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a5a2f 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* Links */
.register-links a {
    color: #b4901e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.register-links a:hover {
    color: #1a5a2f;
    text-decoration: underline;
}

/* Animações */
.register-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .register-card .card-body {
        padding: 1.5rem;
    }
    
    .user-type-section,
    .producer-options-section {
        padding: 1rem;
    }
}

/* Indicadores visuais */
.required-field::after {
    content: " *";
    color: #dc3545;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 2rem 0;
}

/* Estados de validação */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}}