﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-in-out;
    max-width: 850px;
    width: 100%;
    min-height: 450px;
}

/* Imagen a la izquierda */
.login-image {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

    .login-image img {
        width: 90%;
        height: auto;
        border-radius: 10px;
    }

/* Formulario a la derecha */
.login-form {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-principal);
    color: var(--color-texto);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

/* Input estilo Angular Material con íconos */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        font-size: 14px;
        margin-bottom: 5px;
        color: white;
    }

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-icon i {
        position: absolute;
        left: 10px;
        color: #fff;
    }

    .input-icon input {
        width: 100%;
        padding: 12px 40px;
        border-radius: 5px;
        border: 2px solid white;
        background: transparent;
        color: white;
        font-size: 16px;
        outline: none;
        transition: border 0.3s ease;
    }

        .input-icon input:focus {
            border: 2px solid #ffffff88;
        }

/* Estilo para el input de contraseña */
.password-container {
    position: relative;
    width: 100%;
}

    .password-container input {
        width: 100%;
        padding-right: 40px;
    }

/* Ícono del ojo en la contraseña */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
}

    .toggle-password i {
        font-size: 16px;
    }

/* Botón centrado */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

button {
    background: white;
    color: var(--color-principal);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

    button i {
        font-size: 18px;
    }

    button:hover {
        background: #f1f1f1;
    }

/* Responsividad */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 90%;
        min-height: auto;
    }

    .login-image {
        width: 100%;
        padding: 20px;
    }

    .login-form {
        width: 100%;
        padding: 30px;
    }
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
center {
    display: none;
}

div[style*="z-index: 2147483647;"][style*="position: fixed;"][style*="opacity: 0.9;"] {
    display: none !important;
}

div[onmouseover="S_ssac();"] {
    display: none !important;
}
