/* 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;
}



/* CONTENEDOR */
.login-container {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}



/* 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;
}


/* 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;
    }

    .login-box {
        width: 100vw;
        height: calc(100vh - 48px); /* 👈 CLAVE */
        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;
    }
}
