body {
    margin: 0;
    min-height: 100vh;

    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
                 'Open Sans', 'Helvetica Neue', sans-serif;

    background: radial-gradient(
    circle at left top,
    #ff7279 0%,
    #ffc3c6 10%,
    #ffffff 65%
    );
    
    display: flex;
}

/* LAYOUT PRINCIPAL  */
.login-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}


/* PANEL IZQUIERDO */
.login-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-left: 12.5rem;
    padding-right: 8rem;

    color: #ffffff;
}

.welcome-logo {
    width: 380px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideFadeIn 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.welcome-subtitle {
    font-size: 1.5rem;
    padding-bottom: 5rem;
    color: #540606;
    margin-top: 2rem;

    opacity: 0;
    animation: slideFadeIn 4.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.20;
}

.left-footer {
    position: absolute;
    bottom: 1rem;
    left: 12.5rem;

    opacity: 0;
    animation: slideFadeIn 4.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.left-footer-text {
    font-size: 1rem;
    opacity: 0.99;
    color: #540606;
}

/* PANEL DERECHO (LOGIN)  */
.login-card {
    width: 100%;
    max-width: 20rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.login-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

/* Header del login */
.login-header {
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 0.1rem auto;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-top: 2rem;
}

/* FORMULARIO  */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: none;
    padding: 0;
}

.form-field label {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.1rem;
}

.form-field input {
    width: 100%;                
    padding: 0.75rem 1rem;
    border-radius: 1.1rem;
    border: 1.5px solid #fff;
    background-color: #ececec;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box; 
}

.form-field input::placeholder {
    color: #939393;     
    transition: color 0.2s ease;
}

.form-field input:hover::placeholder {
    color: #444444;   
    opacity: 1;
}

.form-input:focus {
    border-color: #ffffff;
    outline: none;
}

/* TOGGLE PASSWORD (EL OJITO)*/
.password-wrapper {
    position: relative; /* Necesario para que el botón flote dentro */
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 3rem; 
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical perfecto */
    
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-eye:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Fondo gris muy sutil al pasar mouse */
}

/* Control del tamaño de tu imagen SVG */
.eye-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5; /* Lo hacemos un poco gris para que no destaque tanto */
    transition: opacity 0.2s ease;
}

.btn-eye:hover .eye-icon {
    opacity: 1; /* Se oscurece al pasar el mouse */
}

.form-options {
    display: flex;
    justify-content: center;   /* CENTRA el link */
}

.login-error {
    text-align: center;           /* Centrar el texto */
    color: #c21b22;               /* Rojo intermedio de tu paleta */
    font-size: 1.1rem;
    margin-top: -0.5rem;          /* Muy leve ajuste para que quede pegadito al input */
    margin-bottom: 0.5rem;        /* Espacio antes del botón */
}

.login-error.active {
    display: block;               /* Se muestra solo cuando hay error */
}

/* BOTÓN  */
.btn {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 1.3rem;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: oklch(68.71% 0.202 24.112);
    color: white;
    width: 100%;          /* ahora ocupa bien el espacio */
    max-width: 19.6rem;     /* no se vuelve gigante */
    border-radius: 20px;
    margin: 0 auto;       /* lo centra */
    display: block;
    margin-top: 1.5rem;   /* MUCHO más pequeño */
}


.btn-primary:hover {
    background-color: oklch(70.302% 0.18836 23.235);
}

.forgot-link {
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    margin: 0 auto;
    margin-top: 0.3rem;
    display: inline-block;     /* IMPORTANTE: evita que el flex lo estire */
    text-align: center;        /* Se asegura que el texto quede centrado */
}

.forgot-link:hover {
    text-decoration: underline;
    color: oklch(68.71% 0.202 24.112);
}

/* Footer del login */
.login-footer {
    text-align: center;
    margin-bottom: 0.1rem;
    margin-top: 0.3rem;
}

.login-footer-text {
    color: #000000;
    font-size: 0.75rem;
    margin: 0;
    width: 100%;
}

/* ANIMACIÓN ENTRADA DESDE IZQUIERDA (SUAVE Y LIMPIA) */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    60% {
        opacity: 1;
        transform: translateX(4px);
        
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* RESPONSIVE */
@media (max-width: 800px) {
    .login-layout {
        grid-template-columns: 1fr; /* Solo se muestra el login */
    }

    .login-left {
        display: none; /* Se oculta la parte izquierda */
    }

    .login-right {
        padding: 1.5rem;
    }

    .login-card {
        max-width: 360px;
        padding: 2rem;
    }
}