* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f4f8;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.login-card {
    display: flex;
    width: 900px;
    height: 550px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Lado de la imagen con fondo de purificadora */
.login-side-image {
    flex: 1;
    /* Imagen de fondo: gotas de agua/pureza */
    background: url('https://images.unsplash.com/photo-1548839140-29a749e1cf4d?q=80&w=1000&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Gradiente oscuro para que el texto resalte como en la imagen de referencia */
    background: linear-gradient(to right, rgba(2, 48, 71, 0.8), rgba(2, 48, 71, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

.overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 80%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Lado del formulario */
.login-side-form {
    flex: 1;
    padding: 50px;
    display: flex;
    align-items: center;
}

.form-content { width: 100%; }

.logo-container { text-align: center; margin-bottom: 30px; }
.logo-container h2 { color: #007bb0; font-weight: bold; margin-top: 10px; }

h3 { color: #333; margin-bottom: 5px; font-size: 1.5rem; }
.subtitle { color: #777; margin-bottom: 30px; font-size: 0.9rem; }

/* Estilo de Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #99a;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #007bb0;
    box-shadow: 0 0 5px rgba(0,123,176,0.2);
}

/* Botón */
.btn-ingresar {
    width: 100%;
    padding: 14px;
    background-color: #219ebc; /* Azul Aqua */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-ingresar:hover {
    background-color: #023047;
    transform: translateY(-2px);
}

.error-msg {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.error-msg i { margin-right: 10px; }