﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Fondo con tu imagen 1920x1080 */
    background: linear-gradient(rgba(10, 2, 33, 0.35), rgba(10, 2, 33, 0.6)), url('../../../assets/Imgs/Halloween/halloween-mansion-bg.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

/* Navbar superior con 3 columnas para centrar perfectamente la calabaza */
.navbar-info {
    background: transparent;
    border-bottom: none;
    padding: 0.75rem 2rem;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 10;
}

    .navbar-info .left-content {
        justify-self: start;
    }


.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .center-content img {
        height: 55px;
        width: auto;
        object-fit: contain;
        /* Si aún notas que se desplaza un par de píxeles, usa un margin-left negativo pequeño */
        margin-left: -5px;
        filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.9));
    }

.logoERP img {
    height: 45px; /* Ajusta el tamaño a tu gusto */
    object-fit: contain;
    /* Esto crea un resplandor y contraste fuerte alrededor de la imagen para que despegue del fondo */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

.door-pumpkin-container {
    position: absolute;
    top: 15px; /* Altura dentro de la barra superior */
    left: 48%; /* Ajusta este porcentaje (ej. 48.5% o 49%) para moverla a la izquierda o derecha exacta de la puerta */
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none; /* Para que no afecte clics por error */
}

    .door-pumpkin-container img {
        height: 65px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 12px rgba(255, 107, 0, 0.9));
    }
/* Navbar secundaria */
.navbar {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.loginheadertittle {
    color: #ff9d00;
    margin-left: 1.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 107, 0, 0.5);
    font-weight: 600;
}

/* Contenedor principal */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    position: relative;
    z-index: 5;
}

/* Card de login temática dentro del portón */
.login-card {
    background: rgba(18, 2, 40, 0.92);
    border: 2px solid #ff6b00;
    border-radius: 16px;
    padding: 2.2rem 2.5rem;
    width: 100%;
    max-width: 420px;
    /* Ajuste milimétrico hacia la izquierda para centrarlo perfecto en el arco */
    margin-left: -28px;
    box-shadow: 0 0 45px rgba(255, 107, 0, 0.4), 0 25px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.4s ease-out;
    position: relative;
    backdrop-filter: blur(8px);
    z-index: 10;
}

    /* Decoración superior estilo Halloween */
    .login-card::before {
        content: "🎃 👻 🦇 👻 🎃";
        position: absolute;
        top: -22px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1rem;
        background: #120228;
        padding: 2px 12px;
        border-radius: 20px;
        border: 1px solid #ff6b00;
        box-shadow: 0 0 12px rgba(255, 107, 0, 0.6);
        letter-spacing: 4px;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h2 {
    text-align: center;
    color: #ff9e3b;
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
}

/* Formulario */
.form-group {
    margin-bottom: 1.1rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
        color: #e0aaff;
        font-weight: 500;
        font-size: 0.85rem;
    }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    color: #ff9e3b;
    z-index: 1;
    pointer-events: none;
}

    .input-group-icon.clickable {
        pointer-events: auto;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .input-group-icon.clickable:hover {
            color: #ff6b00;
        }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #5a189a;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #10002b;
    color: #fff;
}

    .form-control:focus {
        outline: none;
        border-color: #ff6b00;
        background: #1b0232;
        box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
    }

    .form-control::placeholder {
        color: #7b2cbf;
    }

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 0.3rem;
    color: #ff9e3b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #ff6b00;
        text-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
    }

.btn-login {
    width: 100%;
    padding: 0.85rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #ff6b00 0%, #b7094c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(255, 107, 0, 0.8);
        background: linear-gradient(135deg, #ff8533 0%, #c9184a 100%);
    }

.footer {
    background: rgba(13, 2, 33, 0.9);
    color: #c77dff;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.8rem;
    border-top: 2px solid #ff6b00;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.error-message, .success-message {
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
    font-size: 0.8rem;
}
    .error-message.show {
        display: block;
        animation: shake 0.5s ease;
    }
.error-message {
    background: #38040e;
    color: #ff4d6d;
    border-left: 3px solid #ff4d6d;
}

.success-message {
    background: #032f1e;
    color: #2ec4b6;
    border-left: 3px solid #2ec4b6;
}

    .success-message.show {
        display: flex;
        align-items: center;
        gap: 10px;
    }
