﻿body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    /* 🟦 Imagen alineada con márgenes visuales */
    background: #000 url('/Imagenes/Inventra360.png') no-repeat left center;
    background-size: 380px auto; /* Reduce y mantiene proporción */
    background-position: 300px center; /* margen a izquierda */
    /* Si deseas separarla también de arriba y abajo, usa: */
    /* background-position: 40px 50%; */
    height: 100vh;
    overflow: hidden;
}

/* Oscurece el fondo suavemente */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.55);*/
    z-index: -1;
}

/* Contenedor general */
.login-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    padding-right: 8%;
}

/* Tarjeta */
.login-card {
    background: rgba(255, 255, 255, 0.94);
    padding: 2.3rem 2.5rem;
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

    .login-card h3 {
        margin-bottom: 1.8rem;
        color: #222;
        font-weight: 600;
        text-align: center;
        font-size: 1.4rem;
    }

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    padding-left: 10px;
}

/* Botón */
.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    border: none;
    border-radius: 7px;
    transition: 0.3s;
}

    .btn-login:hover {
        opacity: 0.85;
    }

/* 🟦 Ajuste perfecto para móviles */
@media (max-width: 768px) {
    body {
        background-size: 240px;
        background-position: center 40px; /* centrada arriba */
        background-repeat: no-repeat;
        overflow-y: auto;
    }

    .login-container {
        justify-content: center !important;
        padding-right: 0;
        padding-top: 120px; /* deja la imagen arriba */
    }

    .login-card {
        max-width: 90%;
        margin-top: 40px;
    }
}
