/* ====== FONDO DIVIDIDO EN 2 PARTES ====== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 120vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url('img/fondo_login.png'); /* o img/grupos.png */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




/* Asegurar que contenido quede arriba */
.login-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.90);
    padding: 40px 30px;
    width: 350px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);
    text-align: center;
    backdrop-filter: blur(6px);
}

/* Ícono */
.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e6c34c;
    padding: 15px;
    margin: 0 auto 20px auto;
    background: rgba(234, 243, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Título */
.login-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Error */
.error-msg {
    background: rgba(255, 0, 0, 0.15);
    color: #b30000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px;
    border-radius: 8px;
    border: 1px solid #c6ccd3;
    background: rgba(255,255,255,0.3);
    font-size: 16px;
    box-sizing: border-box; /* ← CORRECCIÓN */
}

.icon-left,
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6d6d6d;
    font-size: 18px;
}

.icon-left { left: 12px; }
.toggle-password { right: 12px; cursor: pointer; }

/* Botón */
button {
    width: 100%;
    padding: 14px;
    background: #20694e;
    color: white;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

button:hover {
    background: #0f4933;
}

/* Enlace centrado */
.forgot {
    text-align: center;
    margin-top: 10px;
}

.forgot a {
    font-size: 14px;
    color: #0066cc;
}
