
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    min-height: 100vh;
}

.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


.alerta {
    display: none; 
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
}


.left-panel {
    flex: 1.4;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: background-image 0.5s ease;
}


.right-panel {
    flex: 0.8;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
}


.logo-area {
    display: flex;          
    justify-content: center; 
    align-items: center;   
    margin-bottom: 50px;
    width: 100%;          
}

.main-logo {
    max-width: 100%; 
    height: auto;
    display: block;  
}

input[type="text"] {
  padding-left: 10px; 
}

input[type="password"] {
  padding-left: 10px; 
}



.form-container p {
    color: #1a4d6b;
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 20px;
}


.form-control {
    width: 100%;
    padding: 12px 5px;
    border: none;
    border-bottom: 2px solid #eee;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: transparent;
}

.form-control:focus {
    border-bottom-color: #1a4d6b;
}

.forgot-link {
    display: block;
    text-align: right;
    color: #1a4d6b;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 25px;
}


.btn-primary {
    background-color: #1a4d6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-primary:hover {
    background-color: #12364b;
}


.footer-links {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #1a4d6b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center; 
    gap: 8px; 
}

.footer-links a img {
    width: 22px; 
    height: auto;
}


.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body { padding: 25px; font-size: 0.95rem; color: #444; line-height: 1.6; }
.modal-footer { padding: 15px 20px; display: flex; justify-content: flex-end; }

/* BotÃ³n OK del modal */
.btn-ok { 
    width: auto !important; 
    padding: 10px 35px !important; 
    background-color: #003d4d; 
}

.close-modal { cursor: pointer; font-size: 28px; color: #999; line-height: 1; }


.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    border: 1px solid #ddd;
    color: #1a4d6b;
    font-weight: bold;
    font-size: 1.2rem;
}


@media (max-width: 992px) {
    .left-panel {
        display: none; 
    }
    
    .right-panel {
        flex: 1;
        width: 100%;
    }

    .main-logo {
        max-width: 260px; 
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}