@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

section
{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    width: 100%;
    padding-top: max(24px, calc(env(safe-area-inset-top, 0px) + 12px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    background-color: #1a2332;
    background-image: url('../img/Timinglab_pc.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Tabletas y paisajes bajos: fixed desincroniza fondo y viewport */
@media (min-width: 769px) and (max-width: 1366px),
       (orientation: landscape) and (max-height: 900px)
{
    html
    {
        height: -webkit-fill-available;
    }

    section
    {
        background-attachment: scroll;
    }

    body
    {
        min-height: -webkit-fill-available;
        min-height: 100svh;
    }
}

/* Viewports bajos (tablet horizontal, etc.): la caja no fuerza 480px fijos */
@media (max-height: 720px)
{
    .box
    {
        height: auto;
        min-height: 0;
        max-height: calc(100svh - 140px);
        overflow-y: auto;
        padding: 28px 36px;
    }
}

@media (max-width: 768px)
{
    section
    {
        background-image: url('../img/Timinglab_movil.png');
        background-attachment: scroll;
    }
}

.logo 
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo img
{
    display: block;
    max-width: min(220px, 55vw);
    height: auto;
    margin: 0;
}

.box
{
    position: relative;
    padding: 50px;
    width: 360px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    box-shadow: 0 5px 35px rgba(0,0,0,0.2);
}

.box::after
{
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 5px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 15%, transparent 50%, transparent 85%, rgba(255,255,255,0.3) 100% );
}

.box .form
{
    position: relative;
    width: 100%;
}

.box .form h2
{
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.box .form .inputBx
{
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.box .form .inputBx input
{
    width: 100%;
    outline: none;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    padding: 8px 10px;
    padding-left: 35px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.2);
}

.box .form .inputBx input::placeholder
{
    color: #fff;
}

.box .form .inputBx input[type="submit"]
{
    background: #fff;
    color: #111;
    max-width: 100px;
    padding: 8px 10px;
    box-shadow: none;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
}
.box .form .inputBx img
{
    position: absolute;
    top: 8px;
    left: 10px;
    transform: scale(0.7);
    filter: invert(1);
}

.remember
{
    position: relative;
    display: inline-block;
    color: #fff;
    font-weight: 300;
    margin-bottom: 10px;
    cursor: pointer;
}

.box .form p
{
    color: #fff;
    font-weight: 300;
    font-size: 15px;
    margin-top: 5px;
}

.box .form a
{
    color: #fff;
}