
/* =========================
   CSS MODAL CADASTRAR - ATIVE RMA
   Arquivo: cadastrar.css
   Diretório: ativerma\inicio\cadastrar\cadastrar.css
========================= */

.modal-cadastrar {
    max-width: 480px;
}

.modal-cadastrar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #1672d8, #1363bd);
    color: #ffffff;
}

.modal-cadastrar-header .header-content {
    flex: 1;
}

.modal-cadastrar-header .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.modal-cadastrar-header .modal-title i {
    font-size: 1.5rem;
}

.modal-cadastrar-header .header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.modal-cadastrar .modal-body {
    padding: 2rem;
}

#form-cadastrar .form-group {
    margin-bottom: 1.5rem;
}

/* Campo de senha com toggle */
.senha-group {
    position: relative;
}

.btn-toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-toggle-senha:hover {
    color: #1672d8;
}

.btn-toggle-senha i {
    font-size: 1.1rem;
}

.btn-toggle-senha.active {
    color: #1672d8;
}

/* Indicadores de requisitos de senha */
.senha-requisitos {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: none;
    animation: fadeInDown 0.3s ease-out;
}

.senha-requisitos.show {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.requisito {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.requisito i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.requisito.invalido {
    color: #dc3545;
}

.requisito.invalido i {
    color: #dc3545;
}

.requisito.valido {
    color: #22c55e;
}

.requisito.valido i {
    color: #22c55e;
}

.requisito span {
    flex: 1;
}

/* Checkbox customizado */
.form-check-group {
    margin-bottom: 1.5rem;
}

.checkbox-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-custom input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-custom:hover .checkmark {
    border-color: #1672d8;
}

.checkbox-custom input[type="checkbox"]:checked ~ .checkmark {
    background-color: #1672d8;
    border-color: #1672d8;
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 0.75rem;
    display: none;
}

.checkbox-custom input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-text a {
    color: #1672d8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.checkbox-text a:hover {
    color: #1363bd;
    text-decoration: underline;
}

/* Botões */
.btn-cadastrar-submit {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #1672d8, #1363bd);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(22, 114, 216, 0.3);
}

.btn-cadastrar-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 114, 216, 0.4);
}

.cadastrar-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #6B7280;
    font-size: 0.9rem;
}

.btn-cadastrar-entrar {
    width: 100%;
    padding: 0.875rem;
    background: #ffffff;
    color: #1672d8;
    border: 2px solid #1672d8;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cadastrar-entrar:hover {
    background: rgba(22, 114, 216, 0.05);
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 480px) {
    .modal-cadastrar {
        max-width: 95%;
    }
    
    .modal-cadastrar .modal-body {
        padding: 1.5rem;
    }
    
    .modal-cadastrar-header {
        padding: 1.5rem 1.25rem;
    }
    
    .modal-cadastrar-header .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-cadastrar-header .header-subtitle {
        font-size: 0.85rem;
    }
    
    .checkbox-text {
        font-size: 0.85rem;
    }
}