/* Estilos Globales y Responsivos */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Permitimos scroll en móviles si la pantalla es muy pequeña */
    overflow-x: hidden;
}

/* Fondo con imagen y filtro azul */
.bg-container {
    position: fixed; /* Cambiado a fixed para cubrir toda la pantalla al hacer scroll en móviles */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 72, 144, 0.85);
    background-blend-mode: multiply;
    z-index: -1;
}

/* Contenedor Principal */
.main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Se adapta al alto de cualquier dispositivo */
    padding: 20px;
    box-sizing: border-box;
    color: white;
}

/* Logo Superior */
.logo-arcor {
    width: 110px;
    margin-bottom: 15px;
    max-width: 80%;
}

/* Bienvenida */
.welcome-text {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
    text-align: center;
    padding: 0 10px;
}

/* Contenedor del formulario (caja blanca) adaptable */
.login-container {
    background-color: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 380px; /* Tamaño ideal en PC que se reduce en móviles */
    box-sizing: border-box;
}

.login-container h1 {
    display: none;
}

/* Campos de Entrada */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: none;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #004890;
}

/* Botón Ingresar */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #004890;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #003a75;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Mensajes de error/info */
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: #d32f2f;
    text-align: center;
    font-size: 0.9rem;
}

.messages li {
    background-color: #ffcdd2;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Media Query adicional para celulares muy pequeños */
@media (max-width: 480px) {
    .welcome-text {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .login-container {
        padding: 25px 20px;
    }
}