/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo */
.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1C004A;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

/* Caja de login */
.login-box {
    background: #000 !important;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
}

/* Título */
.login-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

/* Inputs */
.input-group {
    margin-bottom: 15px;
}

    .input-group input {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
        outline: none;
        font-size: 14px;
        transition: 0.3s;
    }

        .input-group input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        }

/* Botón */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-login:hover {
        background: #2563eb;
    }

/* Mensajes de error */
.error-msg {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}
/* ==== General ==== */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00416A, #E4E5E6);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

/* ==== Card ==== */
.company-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 8px 18px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 90%;
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

    /* ==== Título ==== */
    .company-card h2 {
        margin-bottom: 20px;
        font-size: 22px;
        color: #00416A;
    }

/* ==== Inputs ==== */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border 0.3s ease;
}

    select:focus {
        border-color: #00416A;
        outline: none;
    }

/* ==== Botón ==== */
button {
    width: 100%;
    padding: 12px;
    background: #00416A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s;
}

    button:hover {
        background: #006699;
        transform: scale(1.02);
    }

/* ==== Animación FadeIn ==== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==== General ==== */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
    color: #333;
}

/* ==== Header ==== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #00416A;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 30px;
}

    header img {
        max-height: 50px;
        margin-right: 10px;
        vertical-align: middle;
    }

    header strong {
        font-size: 18px;
    }

    header a {
        color: #fff;
        margin-left: 15px;
        text-decoration: none;
        font-weight: bold;
        transition: opacity 0.3s;
    }

        header a:hover {
            opacity: 0.8;
        }

/* ==== Botón Mostrar Formulario ==== */
#toggleFormBtn {
    background: #006699;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    transition: background 0.3s, transform 0.1s;
}

    #toggleFormBtn:hover {
        background: #0099cc;
        transform: scale(1.03);
    }

/* ==== Formulario ==== */
#saleForm {
    display: none; /* oculto hasta que se dé clic */
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

    #saleForm label {
        font-weight: bold;
        display: block;
        margin-top: 12px;
        margin-bottom: 5px;
        text-align: left;
    }

    #saleForm input,
    #saleForm select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        margin-bottom: 12px;
        font-size: 14px;
    }

    #saleForm button {
        width: 100%;
        padding: 12px;
        background: #00416A;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s, transform 0.1s;
    }

        #saleForm button:hover {
            background: #006699;
            transform: scale(1.02);
        }

/* ==== Tabla ==== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
}

th {
    background: #00416A;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

tr:hover {
    background: #f1f7fc;
}

/* ==== Acciones ==== */
.actions a {
    margin: 0 5px;
    text-decoration: none;
    font-weight: bold;
    color: #00416A;
}

    .actions a:hover {
        color: #006699;
    }

/* ==== Animación ==== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-logo {
    display: block;
    margin: 0 auto 15px auto; /* centra y da espacio abajo */
    max-width: 250px; /* tamaño máximo */
    height: auto;
}
