/* login.css */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8fafc;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* LADO ESQUERDO: BRANDING (PC) */
.login-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho de fundo */
.login-brand-side::after {
    content: ''; position: absolute;
    top: -10%; right: -10%; width: 400px; height: 400px;
    background: rgba(0, 243, 255, 0.05);
    filter: blur(100px); border-radius: 50%;
}

.brand-content {
    max-width: 450px;
    z-index: 2;
}

.login-logo-img {
    width: 60px; margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.brand-content h1 {
    font-size: 2.5rem; line-height: 1.2; margin-bottom: 20px;
}

.brand-content p {
    color: #94a3b8; font-size: 1.1rem; margin-bottom: 40px;
}

.feature-item {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 20px; font-size: 0.95rem; color: #cbd5e1;
}

.feature-item i { color: #00f3ff; width: 20px; }

/* LADO DIREITO: FORMULÁRIO */
.login-form-side {
    flex: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%; max-width: 400px;
    display: flex; flex-direction: column;
}

.btn-back-home {
    color: #64748b; font-size: 0.85rem; margin-bottom: 40px;
    transition: color 0.3s;
}
.btn-back-home:hover { color: #007BFF; }

.form-header { margin-bottom: 35px; }
.form-header h2 { font-size: 1.8rem; color: #1e293b; margin-top: 15px; }
.form-header p { color: #64748b; font-size: 0.9rem; }

.mobile-logo { display: none; width: 50px; }

/* FORM GROUPS */
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label {
    font-size: 0.85rem; font-weight: 600; color: #1e293b; margin-bottom: 8px;
}

.form-group input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 0.95rem; transition: all 0.3s;
}

.form-group input:focus {
    outline: none; border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.password-input-wrapper { position: relative; }
#toggle-password {
    position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; cursor: pointer;
}

.forgot-password {
    align-self: flex-end; font-size: 0.8rem;
    color: #007BFF; margin-top: 8px;
}

.btn-login-submit {
    width: 100%; padding: 14px; margin-top: 20px;
    background-color: #007BFF; color: white;
    border: none; border-radius: 8px; font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: all 0.3s;
}

.btn-login-submit:hover {
    background-color: #0056b3; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.form-footer {
    margin-top: 40px; text-align: center;
    font-size: 0.9rem; color: #64748b;
}

.form-footer a { color: #007BFF; font-weight: 500; }

.legal-links { margin-top: 30px; font-size: 0.75rem; color: #94a3b8; }

/* RESPONSIVIDADE (MOBILE FIRST) */
@media (max-width: 992px) {
    .login-brand-side { display: none; } /* Mata o lado da marca no celular */
    
    body { overflow-y: auto; }
    .login-form-side { background-color: #f8fafc; }
    .form-wrapper { 
        background: white; padding: 40px 30px; 
        border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .mobile-logo { display: block; }
}
/* ESTILOS ADICIONAIS - MÓDULO DE CADASTRO HÍBRIDO */
.register-only {
    display: none; /* Inicia oculto para manter o modo Login ativo por padrão */
}

.required-star {
    color: #ef4444;
    margin-left: 2px;
}

/* Customização Discreta do Checkbox */
.checkbox-group {
    margin-top: 10px;
    flex-direction: row !important;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500 !important;
    color: #475569 !important;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #007BFF;
    border-color: #007BFF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6.5px; top: 2.5px;
    width: 5px; height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* MODAL DE DEPENDENTES */
.dep-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dep-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dep-modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 60px; height: 60px;
    background-color: #f0f7ff;
    color: #007BFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.modal-content h3 { font-size: 1.3rem; color: #1e293b; margin-bottom: 10px; }
.modal-content p { font-size: 0.9rem; color: #64748b; line-height: 1.5; margin-bottom: 25px; }

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-modal {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-modal:hover { opacity: 0.9; }

/* Permite rolagem no mobile se o formulário crescer */
@media (max-width: 992px) {
    body { overflow-y: auto; height: auto; }
    .login-container { height: auto; min-height: 100vh; padding: 20px 0; }
}