/* ===== ESTILOS GERAIS ===== */
.cadastro-container {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f5 50%, #ffe8f0 100%);
    position: relative;
    overflow-x: hidden; /* Esconde barra horizontal */
    overflow-y: auto; /* Permite rolagem vertical */
    padding: 20px;
    box-sizing: border-box;
}

.cadastro-container::before {
    content: '';
    position: fixed;
    top: -15%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 220, 235, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.cadastro-container::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 200, 221, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    border-radius: 50%;
}

/* ===== CARTÃO DE CADASTRO ===== */
.cadastro-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(220, 140, 170, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 232, 0.3);
    transition: all 0.3s ease;
    margin: 20px 0;
    box-sizing: border-box;
}

.cadastro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 140, 170, 0.2);
}

.cadastro-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ffb6d0, #ff7ba4);
    border-radius: 20px 0 0 20px;
}

/* ===== LOGO ===== */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-image {
    margin: auto;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(216, 59, 119, 0.1));
}

/* ===== TÍTULOS ===== */
.cadastro-title {
    font-size: clamp(1.6rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #e0528d;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

/* ===== MENSAGENS ===== */
.mensagem-sucesso {
    color: #e0528d;
    background-color: #fff0f5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ffd0e0;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

.mensagem-erro {
    color: #ff4d6d;
    background-color: #fff0f3;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ffccd5;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

/* ===== FORMULÁRIO ===== */
.cadastro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #7a5c6b;
    margin-left: 5px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #ff7ba4;
    font-size: 1rem;
    opacity: 0.8;
}

.input-field {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #f0d6e1;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    color: #5a3e4a;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #ff7ba4;
    box-shadow: 0 0 0 3px rgba(255, 123, 164, 0.2);
    background-color: #fff;
}

.input-field::placeholder {
    color: #c0a8b5;
    opacity: 0.7;
}

/* ===== CHECKBOXES ===== */
.preferencias-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0 5px;
}

.preferencia-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 8px;
}

.preferencia-option:hover {
    background-color: rgba(255, 215, 232, 0.2);
}

.preferencia-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #e0c8d3;
    border-radius: 5px;
    appearance: none;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.preferencia-checkbox:checked {
    background-color: #ff7ba4;
    border-color: #ff7ba4;
}

.preferencia-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 0.7rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preferencia-text {
    font-size: 0.875rem;
    color: #7a5c6b;
    transition: color 0.2s ease;
    user-select: none;
}

.preferencia-option:hover .preferencia-text {
    color: #5a3e4a;
}

/* ===== BOTÃO ===== */
.cadastro-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #ffb6d0, #ff7ba4);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 123, 164, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cadastro-button:hover {
    background: linear-gradient(to right, #ff7ba4, #e0528d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 164, 0.4);
}

.cadastro-button:active {
    transform: translateY(0);
}

.cadastro-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.cadastro-button:hover::after {
    left: 100%;
}

/* ===== RODAPÉ ===== */
.cadastro-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer-text {
    color: #a18a96;
}

.footer-link {
    color: #ff7ba4;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.footer-link:hover {
    color: #e0528d;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff7ba4;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== BARRA DE ROLAGEM PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 10px; /* Largura da barra vertical */
}

::-webkit-scrollbar-track {
    background: rgba(236, 72, 153, 0.1); /* Cor de fundo com transparência */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ec4899; /* Cor principal solicitada */
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: #d43d88; /* Cor mais escura no hover */
}

/* Esconder barra de rolagem horizontal */
::-webkit-scrollbar:horizontal {
    height: 0;
    display: none;
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ec4899 rgba(236, 72, 153, 0.1);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cadastro-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
    .cadastro-card {
        padding: 30px 20px;
        border-radius: 16px;
        max-width: 95%;
    }
    
    .cadastro-title {
        font-size: 1.6rem;
    }
    
    .input-field {
        padding: 12px 15px 12px 40px;
    }
    
    .cadastro-button {
        padding: 13px;
    }
    
    .preferencia-text {
        font-size: 0.85rem;
    }
    
    .cadastro-footer {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-height: 600px) {
    .cadastro-card {
        margin: 10px 0;
    }
}

/* ===== ESTADOS ===== */
.hidden {
    display: none;
}

#button-text {
    position: relative;
    z-index: 1;
}

.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}


/* Toast Notification Styles */
.toast-container {
    position: fixed;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

.toast-container.top-right {
    top: 20px;
    right: 20px;
}

.toast-container.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.toast.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #374151;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInCenter {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container.top-right {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .toast {
        padding: 14px 16px;
    }
    
    .toast-title {
        font-size: 13px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .toast-container.top-right {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .toast {
        padding: 12px 14px;
        border-radius: 10px;
    }
}