/* Estilos exclusivos para la pantalla de acceso */
body.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #f5f5f5;
    overflow: hidden;
    background-color: #060b1f;
}

.login-background {
    position: fixed;
    inset: 0;
    background: url('background.png') center/cover no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: -2;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(46, 74, 188, 0.8), rgba(12, 18, 42, 0.9))
                , linear-gradient(135deg, rgba(22, 30, 61, 0.85), rgba(88, 28, 135, 0.75));
    background-blend-mode: screen;
    z-index: -1;
}

.login-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
    gap: 3rem;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.login-card {
    background: rgba(16, 24, 48, 0.85);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: -150% 20% 20% -150%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: rotate(8deg);
    animation: lightSweep 8s linear infinite;
}

.login-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.login-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.1rem;
    letter-spacing: 1px;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    color: #ffe082;
    text-shadow: 0 0 15px rgba(255, 208, 70, 0.7);
}

.login-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.login-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-label {
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.login-form input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.btn-ingresar {
    margin-top: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    background: linear-gradient(135deg, #ffb347, #ff0844);
    color: #1a1a1a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-ingresar:hover,
.btn-ingresar:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 104, 44, 0.4);
    outline: none;
}

.error-message {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ffbfbf;
    font-size: 0.85rem;
}

.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.login-lore {
    background: rgba(15, 15, 35, 0.55);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

.login-lore h2 {
    margin-top: 0;
    color: #ffca28;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-lore p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.login-lore ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.login-lore li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.login-lore li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #ffb347;
}

@keyframes lightSweep {
    0% {
        transform: translateX(-60%) rotate(8deg);
    }
    100% {
        transform: translateX(40%) rotate(8deg);
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }

    .login-lore {
        order: -1;
        text-align: center;
    }

    .login-lore li {
        padding-left: 0;
    }

    .login-lore li::before {
        display: none;
    }
}

/* Estilos heredados del dashboard que se mantenían en este archivo */
.dashboard {
    text-align: center;
}

.logout {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
}

.logout:hover {
    color: #0056b3;
}

.inventory {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.inventory-row {
    display: flex;
    gap: 10px;
}

.inventory-item {
    width: 60px;
    height: 60px;
    background-color: #555;
    border: 2px solid #777;
    box-sizing: border-box;
}

.logout-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.logout-button:hover {
    background-color: #ff3333;
}
