﻿/* ===============================
   LOGIN – Modal de acceso
   =============================== */

/* Panel del modal centrado (el fondo oscuro lo pone .FondoContenedorModal del General.css) */
.login-overlay {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100001 !important;
}

/* Caja modal */
.login-dialog {
    width: 440px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid #e3efe3;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
    padding: 16px 18px 18px;
}

/* Cabecera del modal */
.login-header {
    text-align: center;
    margin-bottom: 6px;
}

.iconoHABECU {
    width: 96px; /* logo contenido */
    height: auto;
    object-fit: contain;
    display: inline-block;
}

.login-title {
    display: block;
    margin: 8px 0 2px;
    font-size: 18px;
    font-weight: 700;
    color: #0a4f0a;
}

/* Card con el formulario */
.login-card {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e7f2e7;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* Grid (asp:Table) */
.login-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px 12px;
    table-layout: fixed;
}

    .login-grid td {
        vertical-align: middle;
    }

        /* Columna etiqueta */
        .login-grid td:first-child {
            width: 135px;
            text-align: right;
            white-space: nowrap;
            color: #0a4f0a;
            padding-right: 10px;
            font-weight: 600;
            font-size: 14px;
        }

/* Inputs */
.input-field {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #9cc69c;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
    font-size: 14px;
}

    .input-field:focus {
        border-color: #2b7a2b;
        box-shadow: 0 0 0 3px rgba(43,122,43,.12);
    }

/* Checkbox recordar */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a4f0a;
    user-select: none;
    font-size: 14px;
}

/* Botón principal del login */
.btn-login {
    display: inline-block;
    min-width: 160px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: 0;
    background: linear-gradient(180deg, #68b12f, #50911e);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
    cursor: pointer;
}

    .btn-login:hover {
        filter: brightness(1.05);
    }

    .btn-login:disabled {
        opacity: .7;
        cursor: default;
    }

/* Contenedor de acciones centrado */
.login-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    text-align: center;
}

/* Línea separadora entre botón e “olvidaste…” */
.login-separator {
    width: 82%;
    max-width: 260px;
    height: 1px;
    background: #dfe9d7;
    margin: 6px auto 2px;
    border-radius: 1px;
}

/* Link “¿Olvidaste la contraseña?” centrado */
.forgot-link {
    font-size: 13px;
    color: #2b7a2b;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 520px) {
    .login-dialog {
        width: 96vw;
        padding: 12px;
    }

    .login-grid td:first-child {
        width: 36%;
        text-align: left;
        padding-right: 0;
    }

    .forgot-link {
        text-align: center;
    }
}
