/* Importar una fuente de Google para un mejor aspecto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Variables de color para un fácil mantenimiento */
:root {
    --primary-color: #E30613;
    /* Rojo extraído del logo */
    --background-color: #f0f2f5;
    --container-bg-color: #ffffff;
    --text-color: #333;
    --input-border-color: #ccc;
    --button-hover-color: #c20410;
}

/* Estilos generales del cuerpo de la página */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

/* Contenedor principal del formulario de login */
.login-container {
    background-color: var(--container-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 360px;
}

/* Estilo del logo */
.logo {
    width: 80px;
    margin-bottom: 10px;
}

/* Estilo del título "edebé" */
.title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Agrupación de etiqueta e input */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    box-sizing: border-box;
    /* Asegura que el padding no afecte el ancho total */
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(227, 6, 19, 0.2);
}

/* Contenedor para la contraseña y el icono del ojo */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
    /* Espacio para el icono */
}

.password-wrapper i {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #999;
}

/* Botón de acceso */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: var(--button-hover-color);
}

/* Texto de soporte */
.support-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

#support-link {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

#support-link:hover {
    text-decoration: underline;
}

/* Estilos para el Modal */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Estilo del subtítulo "Portal de Devoluciones" */
.subtitle {
    margin-top: -20px; /* Lo acerca al título */
    margin-bottom: 30px; /* Mantiene el espacio antes del formulario */
    font-size: 1.1rem;
    color: #666; /* Un color más suave que el principal */
    font-weight: 400; /* Peso de fuente normal */
}