/* =========================
   CSS DO MODAL DE LOGIN
   Arquivo: login.css
   Diretório: ativerma\inicio\login\login.css
========================= */

.modal-login {
    max-width: 420px;
}

.modal-login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1672d8, #1363bd);
    color: #ffffff;
}

.modal-login-header .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.modal-login-header .modal-title i {
    font-size: 1.4rem;
}

.modal-login .modal-body {
    padding: 2rem;
}

#form-login .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;
    z-index: 10;
}

.btn-toggle-senha:hover {
    color: #1672d8;
}

.btn-toggle-senha i {
    font-size: 1.1rem;
}

.btn-toggle-senha.active {
    color: #1672d8;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

/* Checkbox Lembrar E-mail */
.checkbox-lembrar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-lembrar input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-lembrar .checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-lembrar:hover .checkmark {
    border-color: #1672d8;
}

.checkbox-lembrar input[type="checkbox"]:checked ~ .checkmark {
    background-color: #1672d8;
    border-color: #1672d8;
}

.checkbox-lembrar .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 0.7rem;
    display: none;
}

.checkbox-lembrar input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.checkbox-lembrar .checkbox-text {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
}

.link-esqueceu-senha {
    color: #1672d8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-esqueceu-senha:hover {
    color: #1363bd;
    text-decoration: underline;
}

.btn-login-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-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 114, 216, 0.4);
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 1rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.btn-login-cadastrar {
    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-login-cadastrar:hover {
    background: rgba(22, 114, 216, 0.05);
    transform: translateY(-2px);
}

/* Responsivo checkbox */
@media (max-width: 480px) {
    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .checkbox-lembrar .checkbox-text {
        font-size: 0.8rem;
    }
    
    .link-esqueceu-senha {
        align-self: flex-end;
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .modal-login {
        max-width: 95%;
    }
    
    .modal-login .modal-body {
        padding: 1.5rem;
    }
    
    .modal-login-header {
        padding: 1.25rem;
    }
}