* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* === FONDO Y CENTRADO GENERAL === */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #000;
    /* Ajusta esta ruta a tu proyecto (no uses ruta absoluta de Windows) */
    background-image: url("IMAGENES/LOGIN.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* === TARJETA DEL LOGIN === */
section {
    position: relative;
    max-width: 400px;
    width: 100%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(55px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
}

/* === LOGO CENTRADO ARRIBA === */
.logo_container {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    position: static;   /* importante: ya no fixed */
}

.logo_container img {
    display: inline-block;
    height: 60px;
    width: auto;
}

/* === TÍTULO === */
h1 {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}

/* === INPUTS === */
.inputbox {
    position: relative;
    margin: 20px 0;
    width: 100%;
    border-bottom: 2px solid #fff;
}

.inputbox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.inputbox input {
    width: 100%;
    height: 60px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0 35px 0 5px;
    color: #fff;
}

/* label flotante */
.inputbox input:focus ~ label,
.inputbox input:valid ~ label {
    top: -5px;
    font-size: 0.8rem;
}

/* === RECUÉRDAME / OLVIDÉ CONTRASEÑA === */
.forget {
    margin: 15px 0 25px;
    font-size: 0.85rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.forget label {
    display: flex;
    align-items: center;
}

.forget label input {
    margin-right: 5px;
}

.forget a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.forget a:hover {
    text-decoration: underline;
}

/* === BOTÓN (AHORA ES <button>) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    text-decoration: none;
    color: #111;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

/* Mensaje de error opcional del PHP */
.error {
    color: #ffb3b3;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
}