/* Estilos para a página de registro */
.register-section {
    background: linear-gradient(to bottom right, #6B3CE3, #8E5AFF);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 100vh;
}

.register-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-header p {
    color: var(--p-color);
    font-size: 1.1rem;
}

.form-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.card-header h3 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin: 0;
}

.form-floating {
    position: relative;
    margin-bottom: 25px;
}

.form-control, .form-select {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 20px;
    height: 60px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

.phone-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ddd-input {
    position: relative;
    width: 100px;
}

.ddd-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--p-color);
    z-index: 2;
    font-weight: 500;
}

.ddd-input .form-control {
    padding-left: 30px;
}

.ddd-input label {
    left: 30px;
}

.phone-input {
    flex: 1;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.register-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.register-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.register-btn:hover i {
    transform: translateX(5px);
}

/* Estados de erro */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.invalid-feedback {
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 2px 10px;
    font-size: 0.8rem;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    z-index: 1;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Responsivo */
@media (max-width: 992px) {
    .register-wrapper {
        max-width: 95%;
        padding: 30px;
    }

    .form-card {
        padding: 25px;
    }

    .register-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 100px 0 50px;
    }

    .register-wrapper {
        padding: 20px;
    }

    .form-card {
        padding: 20px;
    }

    .register-header h2 {
        font-size: 1.8rem;
    }

    .card-header i {
        font-size: 1.5rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .form-control, .form-select {
        height: 50px;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .phone-group {
        flex-direction: row;
    }

    .ddd-input {
        width: 90px;
    }

    .register-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-wrapper {
        margin: 10px;
        padding: 15px;
    }

    .form-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .row {
        margin: 0;
    }

    .col-md-3, .col-md-6 {
        padding: 0;
    }

    .form-floating {
        margin-bottom: 30px;
    }

    .register-header {
        margin-bottom: 25px;
    }

    .register-header h2 {
        font-size: 1.5rem;
    }

    .register-header p {
        font-size: 0.9rem;
    }

    .invalid-feedback {
        font-size: 0.75rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    .register-header h2 {
        font-size: 1.3rem;
    }

    .form-control, .form-select {
        font-size: 0.85rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }
}

/* Ajustes para telas muito grandes */
@media (min-width: 1200px) {
    .register-wrapper {
        max-width: 900px;
    }
}

/* Estilos Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 58px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 20px;
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #212529;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 56px;
    right: 10px;
}

.select2-dropdown {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 12px;
}

.select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

/* Ajuste para o label flutuante com Select2 */
.form-floating > .select2-container ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background-color: #fff;
    padding: 0 5px;
    height: auto;
}

/* Responsividade do Select2 */
@media (max-width: 768px) {
    .select2-container .select2-selection--single {
        height: 50px;
        padding: 12px 15px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px;
    }
}

/* Select2 Container */
.select-floating {
    position: relative;
}

.select2-container--default {
    position: relative;
    z-index: 9999;
}

/* Dropdown */
.select2-dropdown {
    margin-top: 2px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    background: #fff;
    overflow: hidden;
}

/* Campo principal */
.select2-container .select2-selection--single {
    height: 58px !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    background: #fff;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    color: #212529 !important;
    font-size: 1rem;
    line-height: normal !important;
}

/* Seta do dropdown */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
}

/* Campo de pesquisa */
.select2-search--dropdown {
    padding: 10px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    height: 42px !important;
}

/* Lista de opções */
.select2-results {
    padding: 5px !important;
}

.select2-results__options {
    max-height: 250px !important;
    padding: 5px !important;
}

.select2-results__option {
    padding: 10px 12px !important;
    margin: 2px 0 !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Label flutuante */
.select-floating label {
    position: absolute;
    top: -10px;
    left: 10px;
    z-index: 1;
    background: #fff;
    padding: 0 5px;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.65);
}

/* Responsividade */
@media (max-width: 768px) {
    .select2-container .select2-selection--single {
        height: 50px !important;
    }
    
    .select2-results__option {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }
}

/* Ajuste para quando o select2 está aberto */
.select2-container--open .select2-dropdown {
    animation: dropdownFadeIn 0.2s ease-out;
}

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

/* Desativar animação quando dropdown estiver aberto */
.select2-container--open ~ .form-card,
.form-card:has(.select2-container--open) {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Garantir que todos os outros cards também não se movam */
.select2-container--open ~ .form-card:hover,
.form-card:has(.select2-container--open):hover,
.register-wrapper:has(.select2-container--open) .form-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Bolas flutuantes maiores */
.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: 40%;
    left: -200px;
    animation-delay: -5s;
}

.shape-3 {
    width: 450px;
    height: 450px;
    bottom: -200px;
    right: 15%;
    animation-delay: -10s;
}

/* Ajuste da opacidade para compensar o tamanho maior */
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: floatingBubbles 20s infinite ease-in-out;
}

/* Animação mais suave para as bolas maiores */
@keyframes floatingBubbles {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-80px) scale(1.05);
    }
}

/* Cores do formulário */
:root {
    --primary-color: #FF6B00;
    --primary-rgb: 255, 107, 0;
    --secondary-color: #FF8534;
    --heading-color: #212529;
    --p-color: #717275;
}

/* Cabeçalho do formulário */
.register-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Ícones nos cabeçalhos dos cards */
.card-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* Campos de formulário em foco */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Botão de registro */
.register-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Select2 customização */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
}

/* ... resto do CSS existente ... */ 