/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* BODY */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow-x: hidden;
}

/* =========================
   ✅ HEADER (LOGO MARCA)
========================= */
.login-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    z-index: 20;
}

.brand-logo{
    height: 38px; /* tamaño logo marca */
    width: auto;
    object-fit: contain;
    display: block;
}

/* CONTENEDOR */
.login-container {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* CAJA LOGIN */
.login-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 2.8rem;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* TITULO */
.login-box h2 {
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* INPUTS */
.login-box input {
    padding: 0.8rem 0.9rem;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: #1c1c1c;
    color: #fff;
    transition: all 0.2s ease;
}

.login-box input::placeholder {
    color: #aaa;
}

.login-box input:focus {
    background: #222;
    box-shadow: 0 0 0 2px #4da3ff;
}

/* BOTON */
.login-box button {
    margin-top: 0.5rem;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background: #4da3ff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-box button:hover {
    background: #3589e0;
    transform: translateY(-1px);
}

/* MENSAJES */
.msg {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.msg.error {
    color: #ff6b6b;
}

.msg.success {
    color: #4cd964;
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #bbb;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 10;
}

/* ✅ LOGO CLIENTE ARRIBA DE "INGRESO" */
.titulo{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* espacio entre logo y texto */
}

.client-logo{
    width: 45%;      /* logo cliente */
    height: auto;
    display: block;
    object-fit: contain;
}

/* ANIMACION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    body {
        overflow: hidden;
    }

    .login-container {
        width: 100vw;
        height: 100vh;
        padding: 0;
        align-items: stretch;

        /* ✅ deja espacio para header arriba */
        padding-top: 64px;
    }

    .login-box {
        width: 100vw;
        height: calc(100vh - 48px - 64px); /* ✅ ahora resta footer + header */
        max-width: none;
        border-radius: 0;
        padding: 3rem 2rem;
        box-shadow: none;
        justify-content: center;
        background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    }

    .titulo {
        border-bottom: 1px solid #fff;
        padding-bottom: 12px;
    }

    /* header un poco más compacto en móvil */
    .login-header{
        height: 58px;
        padding: 0 16px;
    }
    .brand-logo{
        height: 60%;
    }
}
