:root {
    --color-fondos: #110033a6;
    --color-bordes: #7b2cbf66;
    --color-fuente: #ffffff; /*fuente principal*/
    --color-fuente-secundaria: #b5a2d9; /*fuente secundaria*/
    --color-primario: #ff007f;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-image: url(/img/fondofactra.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cuadrofondo {
    background-color: var(--color-fondos);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    width: 150px;
    margin-bottom: 10px;
}

h1 {
    color: var(--color-fuente);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

input {
    background-color: rgba(20, 10, 35, 0.5);
    border: 1px solid var(--color-bordes);
    border-radius: 8px;
    margin-bottom: 16px;
    height: 50px;
    font-size: 1rem;
    color: var(--color-fuente);
    padding: 0 16px;
    box-sizing: border-box;
    text-align: left;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--color-primario);
    background-color: rgba(20, 10, 35, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
    outline: none;
}

input::placeholder {
    color: var(--color-fuente-secundaria);
    opacity: 0.6;
}

button {
    background: linear-gradient(90deg, var(--color-primario) 0%, #7b2cbf 100%);
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 16px;
    height: 50px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-fuente);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px); /* Sutil efecto de flotación */
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Enlace inferior de "Inicia sesión" */
.login-link {
    text-align: center;
    text-decoration: none;
    color: var(--color-fuente-secundaria);
}