/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    /* IMPORTANTE: Quitamos el color de fondo para que se vea la animación */
    background: transparent; 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden; 
}

/* =========================================
   FONDO ANIMADO (CUADRADOS SUBIENDO)
   ========================================= */
.area {
    background: #4e54c8;  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8); 
    background: linear-gradient(to left, #8f94fb, #4e54c8); 
    width: 100%;
    height: 100vh;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: -1; /* Detrás de todo */
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0; padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

/* Configuración de cada cuadrado */
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* =========================================
   TARJETA DE LOGIN
   ========================================= */
.main-container {
    display: flex;
    width: 900px;
    height: 550px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); 
    overflow: visible; 
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 10;
}

/* Panel Izquierdo */
.left-panel {
    flex: 1;
    background: rgba(0, 64, 193, 0.9); /* Azul sólido con un toque de transparencia */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    color: var(--white);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.content-left { position: relative; z-index: 10; text-align: center; }

.left-panel h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.left-panel p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; opacity: 0.9; line-height: 1.6;
}

/* Panel Derecho */
.right-panel {
    flex: 1.2;
    background: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
}

.login-content {
    width: 100%; max-width: 340px; text-align: center;
    display: flex; flex-direction: column; align-items: center;
}

.logo-area {
    height: 100px; width: 100%; margin-bottom: 3rem; position: relative;
    display: flex; justify-content: center; align-items: center;
}

.brand-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    height: 450px; width: auto; object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.welcome-section { text-align: center; margin-bottom: 4rem; position: relative; z-index: 20; }
.welcome-section h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 700; }
.welcome-section p { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-light); font-weight: 500; }

.google-container {
    display: flex; justify-content: center; margin-bottom: 2rem;
    transform: scale(1.1); position: relative; z-index: 20;
}

@media (max-width: 900px) {
    .main-container { flex-direction: column; width: 90%; height: auto; overflow: hidden; }
    .left-panel { display: none; }
    .right-panel { padding: 4rem 1.5rem; border-radius: 30px; }
    .brand-logo { height: 300px; }
    .logo-area { height: 100px; margin-bottom: 2rem; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }