/* ------------------ VARIABLES ------------------ */
:root {
    --primary-color: #f8011c;
    --primary-hover: #f12239;
    --text-color: #ccc;
    --background-light: rgba(255, 255, 255, 0.85);
    --border-color: #e4e4e3;
    --highlight-color: #1c9a92;
}

/* ------------------ FUENTE ------------------ */
body, input, button {
    font-family: "Roboto", sans-serif;
}

/* ------------------ VIDEO DE FONDO ------------------ */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;  /* Se coloca detrás del contenido */
}

/* ------------------ ESTILOS DE LOGIN ------------------ */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* ------------------ LOGO EOSIA ------------------ */
.login-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login-logo {
    width: 200px;  /* Ajusta el tamaño si es necesario */
    height: auto;
    max-width: 100%;
}

/* ------------------ ESTILOS DE LOS LABELS ------------------ */
.login-container label {
    display: block;
    position: relative;
    text-align: left;
    margin: 10px 0 5px;
    font-size: 12px;
    font-family: "Roboto", sans-serif;
    color: #1c9a92; /* Verde original */
}

/* ------------------ ESTILOS DE LOS CAMPOS DE ENTRADA ------------------ */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

/* ------------------ INPUTS ------------------ */
.input-container input {
    width: 100%;
    padding: 12px 50px; /* Ajustar padding para que el texto no choque con el icono */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 12px;
    background-color: var(--background-light);
    color: black;
    height: 45px; /* Ajustar la altura del input para coincidir con el icono */
    line-height: 45px; /* Asegurar alineación vertical */
}

/* ------------------ ICONOS EN LOS CAMPOS DE ENTRADA ------------------ */
.login-container label:after {
    content: '';
    position: absolute;
    width: 45px;  /* Tamaño del área del icono */
    height: 100%; /* Ahora igual que el input */
    top: 0; /* Elimina el desplazamiento vertical */
    left: 10px;  /* Ajusta la distancia desde el borde izquierdo */
    border-radius: 5px;
    background-image: url('https://app.medithink.com/wp-content/plugins/loginpress-pro/assets/img/login-field-icons.svg');
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
}

/* Icono para el campo de correo */
.login-container label[for="email"]:after {
    background-position: 0 center;
}

/* Icono para el campo de contraseña */
.login-container label[for="password"]:after {
    background-position: -60px center;
}

/* ------------------ BOTÓN DE INICIO DE SESIÓN ------------------ */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: #1c9a92; /* Color original del botón */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0px 5px 20px 0px rgba(255, 255, 255, 0.20);
    margin-top: 50px; /* Aumentar la separación */
}

.login-button:hover {
    background-color: #157f72; /* Color más oscuro en hover */
    box-shadow: 0px 5px 25px 0px rgba(255, 255, 255, 0.25);
}

/* Asegurar que los inputs y el botón tengan el mismo ancho */
.input-wrapper, .login-button {
    width: 100%; /* Ambos tendrán el mismo ancho */
    max-width: 280px; /* Ajusta este valor para que coincida con el botón */
}

/* ------------------ LINK OLVIDÉ CONTRASEÑA ------------------ */
.forgot-password {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Ajusta este valor según tu preferencia */
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Contenedor del input */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-light);
    padding-left: 50px; /* Espacio para el icono */
}

/* Campo de entrada */
.input-wrapper input {
    flex: 1;
    border: none;
    font-size: 12px;
    background: transparent;
    color: black;
    height: 100%;
    padding: 10px;
}

/* Fondo gris detrás del icono */
/* Fondo gris claro detrás del icono */
.input-icon {
    position: absolute;
    left: 0;
    width: 45px; /* Espacio reservado para el icono */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05); /* Gris más claro */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Tamaño correcto del icono */
.input-icon svg {
    width: 24px !important;
    height: 24px !important;
    display: block;
}

/* Iconos dentro del fondo gris */
.input-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Evitar que el icono SVG se haga demasiado pequeño */
.input-icon svg path {
    fill: #1c9a92 !important; /* Color del icono */
}

/* Ajustar trazo del candado sin afectar otros iconos */
.input-icon .candado path {
    stroke-width: 0.5 !important; /* Hace el borde más fino */
}

/* Icono de ojo para mostrar/ocultar contraseña */
.toggle-password {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ajustar tamaño del icono de ojo */
.toggle-password svg {
    width: 24px;
    height: 24px;
}

/* Cambiar color al pasar el mouse */
.toggle-password:hover svg path {
    stroke: #157f72; /* Color más oscuro en hover */
}

/* ------------------ Messages ------------------ */
.error-message {
    color: white;
    background-color: #f44336;  /* Rojo */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.success-message {
    color: white;
    background-color: #4CAF50;  /* Verde éxito */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}