html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background-image: url("https://ogrvdigzpdjlkobuhqbh.supabase.co/storage/v1/object/public/poppy-public/site-assets/shared/JinxandEkko.png"), url(../Photos/JinxandEkko.png);
    background-position: center;
    background-size: cover;
    font-family: "Lexend", sans-serif;
    padding: 32px 16px;
    color: #E5EFE6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bigdiv, .divheader, main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.8rem;
    font-weight: 700;   
}

main {
    width: 100%;
    margin-top: 24px;
}

.numeritos {
    width: min(92vw, 420px);
    max-height: none;
    box-sizing: border-box;
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(24, 55, 83, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 45px rgba(111, 55, 91, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.divcontra {
    display: flex;
    justify-content: center;
    margin: 10px 0 18px;
}

.logininp {
    width: 100%;
    height: 50px;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #183753;
    border-radius: 12px;
    background: rgba(30, 26, 66, 0.6);
    font-family: "Lexend", sans-serif;
    color: #E5EFE6;
    outline: none;
}

.logininp::placeholder {
    color: rgba(229, 239, 230, 0.4);
}

button {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background-color: #384F81;
    color: white;
    border: none;
    border-radius: 20px;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    background-color: #4a68a4;
}

.toggletext {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.toggletext a {
    color: #E5EFE6;
    text-decoration: underline;
    font-weight: 600;
}

.error {
    margin-top: 15px;
    font-weight: 600;
    color: #ff6b6b;
}

/* Los formularios se alternan en la misma tarjeta y la pantalla puede desplazarse. */
[hidden] {
    display: none !important;
}

#login-form {
    margin: 0;
}

#register-panel {
    width: 100%;
}

@media (max-height: 720px) {
    body {
        justify-content: flex-start;
    }

    main {
        margin-top: 16px;
    }

    .numeritos {
        padding: 22px 20px;
    }
}
