/* --- Importación de Fuente (de module-base.css) --- */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

/* --- Variables de :root (de module-base.css) --- */
:root {
    --bg-dark: #000000;
    --primary-color: #0f0;
    --secondary-color: #000000;
    --text-light: #0f0;
    --card-bg-dark: #1a1a1a;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* --- Estilos Base (de module-base.css y style1.css) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--primary-color);
    overflow: hidden; /* Evita scroll en la página de login */
}

/* --- Sistema de Fondo (de module-base.css y style1.css) --- */
section {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000, #0f0, #000);
    animation: animate 5s linear infinite;
    z-index: 0; /* Detrás de los tiles */
}

@keyframes animate {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

#tiles {
    position: absolute;
    inset: 0; 
    display: grid;
    gap: 2px;
    z-index: 1; /* Detrás del login, delante de la animación */
}

.tile {
    background: #181818;
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.tile.active {
    background: #0f0;
    transform: scale(1.15);
    box-shadow: 0 6px 18px rgba(0,255,0,0.12);
}

/* --- Estilos de Login (de style1.css y HTML inline) --- */
.signin {
    position: absolute;
    width: 90%;
    max-width: 900px; 
    background: #222;
    z-index: 1000; /* Sobre todo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

.signin .content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Hacemos que las columnas tengan la misma altura */
    gap: 40px;
}

/* Estilos de la Columna Izquierda (movidos desde inline) */
.left-column {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.left-column h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}
.left-column p {
    opacity: 0.9;
    max-width: 400px;
}
.left-column p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.left-column p:last-of-type { /* "No tienes cuenta?" */
    font-size: 0.9em;
    opacity: 0.8;
}

/* Estilos de la Columna Derecha (movidos desde inline) */
.right-column {
    width: 360px;
    flex-shrink: 0; /* Evita que se encoja */
}

/* Formulario (de style1.css) */
.signin .content .form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.signin .content .form .inputBox {
    position: relative;
    width: 100%;
}

.signin .content .form .inputBox input {
    position: relative;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    padding: 25px 10px 7.5px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 1em;
}

.signin .content .form .inputBox i {
    position: absolute;
    left: 0;
    padding: 15px 10px;
    font-style: normal;
    color: #aaa;
    transition: 0.5s;
    pointer-events: none;
}

.signin .content .form .inputBox input:focus ~ i,
.signin .content .form .inputBox input:valid ~ i {
    transform: translateY(-7.5px);
    font-size: 0.8em;
    color: #fff;
}

.signin .content .form .links {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.signin .content .form .links a {
    color: #fff;
    text-decoration: none;
}
.signin .content .form .links a:hover {
    color: var(--primary-color);
}

.signin .content .form .inputBox input[type="submit"] {
    padding: 10px;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.35em;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}
.signin .content .form .inputBox input[type="submit"]:hover {
    background: #fff;
}

/* Fix para Autocompletar de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 0 0 30px #333 inset !important;
}

/* Media Queries (de style1.css) */
@media (max-width: 900px) {
    .signin .content {
        flex-direction: column;
        gap: 30px;
    }
    .right-column {
        width: 100%;
        max-width: 360px; /* Mantiene el ancho del form */
        margin: 0 auto;
    }
}
