:root {
    --primary: #3a4dc7;
    --secondary: #f15a24;
    --text-dark: #2b3990;
    --border-color: #e6e9f0;
    --input-bg: #f2f5fa;
    --moneda: #dfdc3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #ebf4ff, #eef2ff, #ebf4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden; /* Evita el scroll */
}

/*animacion de circulos*/
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite hacer clic en elementos por encima */
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(58, 77, 199, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: move 10s infinite;
}

@keyframes move {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Crea varias instancias de círculos */
.circle:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 10%; }
.circle:nth-child(2) { width: 150px; height: 150px; top: 30%; left: 20%; animation-duration: 12s; }
.circle:nth-child(3) { width: 80px; height: 80px; top: 150%; left: 50%; animation-duration: 8s; }
.circle:nth-child(4) { width: 120px; height: 120px; top: 70%; left: 40%; animation-duration: 15s; }
.circle:nth-child(5) { width: 90px; height: 90px; top: 120%; left: 60%; animation-duration: 11s; }
.circle:nth-child(6) { width: 110px; height: 110px; top: 60%; left: 30%; animation-duration: 14s; }
.circle:nth-child(7) { width: 130px; height: 130px; top: 40%; left: 80%; animation-duration: 9s; }
.circle:nth-child(8) { width: 140px; height: 140px; top: 80%; left: 10%; animation-duration: 10s; }
.circle:nth-child(9) { width: 100px; height: 100px; top: 50%; left: 80%; animation-duration: 13s; }
.circle:nth-child(10) { width: 120px; height: 120px; top: 30%; left: 70%; animation-duration: 12s; }

/*final animacion de circulos*/

.login-container {
    position: relative; /* Para que los elementos hijos se posicionen sobre este contenedor */
    background-color: white;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary);
    padding: 20px;
}

/* El resto de tu CSS permanece igual... */

.login-header {
    background-color: var(--primary);
    color: white;
    padding: 5px 40px; /* Espaciado equilibrado */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    gap: 20px; /* Espaciado entre elementos */
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

.header-dots {
    gap: 4px;
}

.logo {
    display: block;
    width: 120px; /* Ajusta el tamaño del logo según sea necesario */
    height: auto; /* Mantiene la proporción del logo */
}


.login-body {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sección del formulario */
.login-form-section {
    flex: 1;
    padding-right: 40px;
    text-align: center;
}

/* Botón centrado */
.x-slot\:actions {
    display: flex;
    justify-content: center;
}

/* Sección gráfica */
.login-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-heading {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.document-icon {
    position: relative;
    width: 200px;
    height: 200px;
}

.doc {
    width: 120px;
    height: 150px;
    background-color: white;
    border: 4px solid var(--primary);
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.doc::before {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 25px;
    height: 25px;
    background-color: var(--primary);
    transform: rotate(45deg);
}

.doc-line {
    width: 80%;
    height: 8px;
    background-color: var(--primary);
    margin: 8px 0;
    border-radius: 4px;
    opacity: 0.6;
}

.doc-line:first-child {
    width: 40%;
}

.money-circle {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    border: 4px solid var(--moneda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--moneda);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-body {
        flex-direction: column;
        text-align: center;
    }

    .login-graphic {
        order: -1; /* Mueve la imagen arriba */
        margin-bottom: 20px;
    }

    .login-form-section {
        width: 100%;
        padding-right: 0;
    }

    .document-icon {
        transform: scale(0.9);
    }
    .login-header {
    text-align:center;
    }
    .login-graphic{
        margin-bottom: 40px;
    }
}

@keyframes escribir {
    0% { width: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { width: 80%; opacity: 0.8; }
}

@keyframes desaparecer {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes girar {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Efecto de escritura en bucle más lento */
.doc-line {
    width: 80%;
    height: 8px;
    background-color: var(--primary);
    margin: 8px 0;
    border-radius: 4px;
    opacity: 0;
    animation: escribir 3s ease-in-out infinite alternate, desaparecer 3s ease-in-out infinite alternate;
}

/* Retraso progresivo para que se dibujen en orden */
.doc-line:nth-child(1) { animation-delay: 0.8s; width: 40%; }
.doc-line:nth-child(2) { animation-delay: 1.2s; }
.doc-line:nth-child(3) { animation-delay: 1.6s; }
.doc-line:nth-child(4) { animation-delay: 2s; }
.doc-line:nth-child(5) { animation-delay: 2.4s; }

/* Aplica la animación de flotación a la moneda */
.money-circle {
    animation: flotar 4s ease-in-out infinite;
}


