/* Estilos base */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

/* NAVBAR */
nav {
    background-color: black;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--primary);
}

.logo {
    height: 5.2rem;
}

/* FONDO Y CENTRADO */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: url("../recursos/fondo4.jpeg") no-repeat center center;
    background-size: cover;
}

/* CONTENEDOR DEL FORMULARIO */
.form-box {
    position: relative;
    width: 300px; /* Reducido */
    height: 380px; /* Reducido */
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* TÍTULO */
h2 {
    font-size: 1.5em; /* Reducido */
    color: black;
    text-align: center;
}

/* ICONO DE LOGIN */
.login-image {
    text-align: center;
    padding: 0.5rem 0 0;
}

.login-image img {
    width: 60px; /* Reducido */
    height: 60px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
}

/* GRUPO DE FORMULARIO */
.form-group {
    margin-bottom: 0.8rem; /* Reducido */
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem; /* Ligero ajuste */
    font-weight: 500;
    color: var(--text);
}

/* CAMPO DE ENTRADA */
.input-field {
    position: relative;
}

.input-field i {
    position: absolute;
    left: 0.6rem; /* Más cerca del borde */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem; /* Más pequeño */
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2rem; /* Más compacto */
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    background-color: var(--light);
    color: black;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(104, 171, 254, 0.15);
}

/* BOTÓN */
button {
    width: 100%;
    height: 35px; /* Más pequeño */
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.9em; /* Más pequeño */
    font-weight: 600;
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

button:hover {
    box-shadow: 0 0 0 3px #9c164e;
}

/* TEXTO DE REGISTRO */
.register {
    font-size: 0.8em;
    color: #fff;
    text-align: center;
    margin: 20px 0 10px;
}

.register p a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.register p a:hover {
    text-decoration: underline;
}
