﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    background-image: url('../Images/Fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.1); /* leve oscuridad de fondo */
    background-blend-mode: overlay;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.85); /* semitransparente */
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #0078D7; /* borde azul */
    width: 350px;
    text-align: left; /* alinear texto a la izquierda */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin-bottom: 20px;
    text-align: center; /* centrar solo el logo */
}

.logo {
    width: 175px; /* logo más grande */
    height: 96px;
}

.login-container h2 {
    margin-bottom: 20px;
    text-align: left; /* alinear título a la izquierda */
    color: #333;
}

.login-container label {
    display: block;
    margin-top: 10px;
    text-align: left;
    color: #333;
    font-weight: bold;
}

.input-text {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #0078D7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #005ea6;
}
.user-type-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.role-button {
    flex: 1;
    padding: 8px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

    .role-button:hover {
        background-color: #ccc;
    }
.btn-olvide {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal-box {
    background: #fff;
    width: 360px;
    margin: 8% auto;
    padding: 20px;
    border-radius: 6px;
}

    .modal-box h3 {
        margin-bottom: 15px;
    }

    .modal-box label {
        font-size: 13px;
        display: block;
        margin-top: 10px;
    }

.correo-mask {
    font-weight: bold;
    color: #444;
    display: block;
    margin-top: 5px;
}

.modal-actions {
    margin-top: 20px;
    text-align: right;
}

.btn-cancelar {
    background: #ccc;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}
.swal2-container {
    z-index: 20000 !important;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}
/* Botón Olvidó contraseña */
.btn-olvido {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c; /* rojo oscuro */
    border: 1px solid #b91c1c;
    border-radius: 6px;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

    .btn-olvido:hover {
        background-color: #b91c1c;
        color: #ffffff;
    }
/* ================= MODAL ACTIONS ================= */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Botón Validar (principal) */
.btn-modal-primary {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: #003366; /* azul INEI */
    border: 1px solid #003366;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

    .btn-modal-primary:hover {
        background-color: #002244;
    }

/* Botón Cancelar (secundario) */
.btn-modal-cancel {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #374151; /* gris oscuro */
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

    .btn-modal-cancel:hover {
        background-color: #e5e7eb;
    }

    /* Efecto click */
    .btn-modal-primary:active,
    .btn-modal-cancel:active {
        transform: scale(0.97);
    }
/* ================= FOOTER COPYRIGHT ================= */
.footer-copy {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin: 30px 0 15px 0;
}

.link-hospitecno {
    color: #003366;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color .2s ease;
}

    .link-hospitecno:hover {
        color: #0ea5e9;
    }

/* ================= MODAL HOSPITECNO ================= */
.modal-hospitecno {
    max-width: 500px;
}

.modal-header-hospitecno {
    text-align: center;
    margin-bottom: 15px;
}

.logo-hospitecno {
    max-width: 160px;
    height: auto;
}

.modal-body-hospitecno h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #003366;
}

.modal-body-hospitecno p {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    text-align: center;
}

.contacto-hospitecno {
    margin-top: 15px;
    font-weight: 500;
}

    .contacto-hospitecno a {
        color: #003366;
        font-weight: 600;
        text-decoration: none;
    }

        .contacto-hospitecno a:hover {
            text-decoration: underline;
        }