﻿﻿ /* ============================================
           🎃 HALLOWEEN MODE - Cambiar a false para desactivar
           ============================================ */
:root {
    --halloween-mode: 1; /* 1 = activado, 0 = desactivado */
}

* {
    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;
    background: linear-gradient(135deg, #0a113d 0%, #1a2b6d 100%);
    position: relative;
    overflow-x: hidden;
}

/* ============================================
           🎃 ANIMACIONES DE HALLOWEEN
           ============================================ */

/* Calabazas flotantes */
.halloween-pumpkin {
    position: fixed;
    font-size: 3rem;
    opacity: calc(0.7 * var(--halloween-mode));
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.pumpkin-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.pumpkin-2 {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.pumpkin-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.pumpkin-4 {
    top: 60%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Murciélagos voladores */
.halloween-bat {
    position: fixed;
    font-size: 2rem;
    opacity: calc(0.6 * var(--halloween-mode));
    pointer-events: none;
    z-index: 1;
    animation: flyBat 15s linear infinite;
}

.bat-1 {
    top: 15%;
    animation-delay: 0s;
}

.bat-2 {
    top: 45%;
    animation-delay: 5s;
}

.bat-3 {
    top: 70%;
    animation-delay: 10s;
}

@keyframes flyBat {
    0% {
        left: -10%;
        transform: translateY(0) scaleX(1);
    }

    48% {
        transform: translateY(-30px) scaleX(1);
    }

    50% {
        transform: translateY(-30px) scaleX(-1);
    }

    98% {
        transform: translateY(0) scaleX(-1);
    }

    100% {
        left: 110%;
        transform: translateY(0) scaleX(-1);
    }
}

/* Fantasmas */
.halloween-ghost {
    position: fixed;
    font-size: 2.5rem;
    opacity: calc(0.5 * var(--halloween-mode));
    pointer-events: none;
    z-index: 1;
    animation: ghostFloat 8s ease-in-out infinite;
}

.ghost-1 {
    top: 25%;
    right: 20%;
    animation-delay: 0s;
}

.ghost-2 {
    bottom: 30%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes ghostFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(-5deg);
        opacity: calc(0.3 * var(--halloween-mode));
    }

    50% {
        transform: translate(10px, -15px) rotate(5deg);
        opacity: calc(0.6 * var(--halloween-mode));
    }
}

/* Arañas colgantes */
.halloween-spider {
    position: fixed;
    font-size: 1.5rem;
    opacity: calc(0.7 * var(--halloween-mode));
    pointer-events: none;
    z-index: 1;
    animation: spiderHang 4s ease-in-out infinite;
}

.spider-1 {
    top: 0;
    left: 25%;
    animation-delay: 0s;
}

.spider-2 {
    top: 0;
    right: 30%;
    animation-delay: 2s;
}

@keyframes spiderHang {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(50px) rotate(10deg);
    }
}

/* Efecto de brillo en el card durante Halloween */
.login-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 calc(30px * var(--halloween-mode)) rgba(255, 100, 0, 0.2);
}

/* Navbar superior */
.navbar-info {
    background: white;
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logoERP img {
    height: 50px;
    object-fit: contain;
}

/* Navbar secundaria */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.loginheadertittle {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Contenedor principal */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Card de login */
.login-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 700;
}

/* Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #555;
        font-weight: 500;
        font-size: 0.9rem;
    }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    color: #999;
    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: #0a113d;
        }

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #0a113d;
        background: white;
        box-shadow: 0 0 0 3px rgba(10, 17, 61, 0.1);
    }

    .form-control::placeholder {
        color: #adb5bd;
    }

/* Link de contraseña olvidada */
.forgot-password {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    color: #0a113d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #1a2b6d;
    }

/* Botón de login */
.btn-login {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #0a113d 0%, #1a2b6d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(10, 17, 61, 0.4);
        background: linear-gradient(135deg, #0d1548 0%, #1e3078 100%);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar-info,
    .navbar {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .loginheadertittle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

        .login-card h2 {
            font-size: 1.5rem;
        }
}
.error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 12px 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    font-size: 0.9rem;
    border-left: 4px solid #f56565;
}

    .error-message.show {
        display: block;
        animation: shake 0.5s ease;
    }
    .error-message i {
        font-size: 20px;
        color: #eb3b5a;
    }

.success-message {
    background: #f0fff4;
    color: #22543d;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
    font-size: 0.9rem;
    border-left: 4px solid #48bb78;
    animation: slideIn 0.5s ease;
}

    .success-message.show {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .success-message i {
        font-size: 20px;
        color: #48bb78;
    }