/* =====================================================
   CSS DA PÁGINA DE CADASTRO
   Tático Suplementos
   ===================================================== */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 0;
    margin-bottom: 40px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #00cc6a;
}

.breadcrumb-nav i {
    color: #666;
    font-size: 12px;
}

/* Seção de Cadastro */
.cadastro-section {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.cadastro-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Formulário de Cadastro */
.cadastro-form {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.form-header h1 i {
    color: #00ff88;
    margin-right: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Seções do Formulário */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00ff88;
}

.form-section h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
}

.form-section h3 i {
    color: #00ff88;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Grid do Formulário */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Grupos de Formulário */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ff4757;
}

/* Input de Senha */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #00ff88;
}

/* Força da Senha */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #ff4757;
}

.strength-fill.medium {
    width: 66%;
    background: #ffa502;
}

.strength-fill.strong {
    width: 100%;
    background: #00ff88;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
}

/* Mensagens de Erro */
.error-message {
    display: none;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Checkbox Personalizado */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #00ff88;
    border-color: #00ff88;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.checkbox-label a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Botões de Ação */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00cc6a 0%, #00a855 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

.btn-outline:hover {
    background: #00ff88;
    color: #1a1a1a;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Link para Login */
.login-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-link p {
    color: #666;
    margin: 0;
}

.login-link a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Card de Benefícios */
.beneficios-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.beneficios-header {
    text-align: center;
    margin-bottom: 40px;
}

.beneficios-header h3 {
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.beneficios-header h3 i {
    margin-right: 10px;
}

.beneficios-header p {
    color: #ccc;
    margin: 0;
    font-size: 1rem;
}

/* Lista de Benefícios */
.beneficios-list {
    margin-bottom: 40px;
}

.beneficio-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #00ff88;
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.beneficio-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.beneficio-icon i {
    color: #1a1a1a;
    font-size: 1.2rem;
}

.beneficio-content h4 {
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    font-family: 'Orbitron', sans-serif;
}

.beneficio-content p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Informações de Segurança */
.seguranca-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seguranca-info h4 {
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
}

.seguranca-info h4 i {
    margin-right: 10px;
}

.seguranca-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seguranca-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.seguranca-info li i {
    color: #00ff88;
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Modal de Sucesso */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #1a1a1a;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
}

.modal-header h3 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.beneficios-destaque {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.beneficio-destaque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #00ff88;
    font-weight: 600;
    font-size: 1.1rem;
}

.beneficio-destaque i {
    font-size: 1.5rem;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 1024px) {
    .cadastro-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .beneficios-card {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cadastro-form {
        padding: 30px 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .beneficios-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cadastro-section {
        padding: 20px 0;
    }
    
    .cadastro-form {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .beneficios-card {
        padding: 20px 15px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .beneficio-item {
        flex-direction: column;
        text-align: center;
    }
    
    .beneficio-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cadastro-form,
.beneficios-card {
    animation: fadeInUp 0.6s ease;
}

.beneficio-item {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.beneficio-item:nth-child(1) { animation-delay: 0.1s; }
.beneficio-item:nth-child(2) { animation-delay: 0.2s; }
.beneficio-item:nth-child(3) { animation-delay: 0.3s; }
.beneficio-item:nth-child(4) { animation-delay: 0.4s; }
.beneficio-item:nth-child(5) { animation-delay: 0.5s; }
.beneficio-item:nth-child(6) { animation-delay: 0.6s; }

/* Estados de Loading */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Validação em Tempo Real */
.form-group input:valid,
.form-group select:valid {
    border-color: #00ff88;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #ff4757;
}

/* Tooltip de Ajuda */
.form-group {
    position: relative;
}

.form-group .help-tooltip {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    color: #666;
    cursor: help;
    font-size: 0.9rem;
}

.form-group .help-tooltip:hover {
    color: #00ff88;
}

/* Melhorias de Acessibilidade */
.form-group input:focus,
.form-group select:focus,
.btn:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* Scrollbar Personalizada */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
} 