body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('/dashboard/qr_generator/fondo1.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}
.login-container {
    background: rgba(255,255,255,0.13);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 40px 30px 30px 30px;
    width: 350px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.2s cubic-bezier(.39,.575,.565,1.000) both;
    margin-top: 40px;
    margin-bottom: 0;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.login-container h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}
.tab {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.tab button {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 15px;
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
.tab button.active {
    border-bottom: 2px solid #fff;
    color: #fff;
}
.form {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: fadeInForm 0.7s;
}
@keyframes fadeInForm {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
.form.active {
    display: flex;
}
.form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}
.form input:focus {
    border-color: #232526;
}
.form button {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(31,38,135,0.15);
    transition: background 0.3s, transform 0.2s;
}
.form button:hover {
    background: linear-gradient(90deg, #414345 0%, #232526 100%);
    transform: translateY(-2px) scale(1.03);
}
.mensaje {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 15px;
    min-height: 20px;
}
.glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background: radial-gradient(circle, #232526 0%, #414345 80%, transparent 100%);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 0;
}
@media (max-width: 500px) {
    .login-container {
        margin-top: 10px;
        margin-bottom: 0;
    }
}
#acceso-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
#acceso-container div {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 4px 16px #0003;
    text-align: center;
    max-width: 90vw;
}
#acceso-container h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}
#acceso-container button {
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.3s;
}
.login-3d-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}
.login-3d-card {
    background: rgba(30,30,40,0.92);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37), 0 0 0 2px #232526;
    padding: 40px 32px 32px 32px;
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(.39,.575,.565,1.000), box-shadow 0.3s;
    will-change: transform;
    position: relative;
}
.login-3d-card h2 {
    color: #fff;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}
.login-3d-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-3d-card input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: #232526;
    color: #fff;
}
.login-3d-card input:focus {
    border-color: #00ffe7;
}
.login-3d-card .neon-btn {
    margin-top: 10px;
}
.login-3d-card .mensaje {
    text-align: center;
    color: #e74c3c;
    margin-top: 18px;
    font-size: 15px;
    min-height: 20px;
}
.login-3d-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 0 0 60px 0 #00ffe7, 0 0 0 0 #fff;
    opacity: 0.10;
    z-index: 0;
}
@media (max-width: 500px) {
    .login-3d-card { width: 95vw; padding: 30px 5vw; }
}
.neon-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg,#232526 0%,#414345 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 16px 2px #00ffe7, 0 2px 8px #0002;
    transition: 
        box-shadow 0.3s, 
        background 0.3s, 
        transform 0.5s cubic-bezier(.4,2.3,.3,1);
    will-change: transform;
}
.neon-btn:hover {
    background: linear-gradient(90deg,#414345 0%,#232526 100%);
    animation: neon-btn-glow 1.2s infinite alternate;
    transform: rotateY(10deg) scale(1.04);
}
@keyframes neon-btn-glow {
    0% { box-shadow: 0 0 16px 2px #00ffe7, 0 2px 8px #00ffe7; }
    50% { box-shadow: 0 0 32px 8px #00ffe7, 0 2px 8px #00ffe7; }
    100% { box-shadow: 0 0 16px 2px #00ffe7, 0 2px 8px #00ffe7; }
}

/* Estilo para mensaje de error */
.error-mensaje {
    text-align: center;
    color: #e74c3c;
    margin: 15px 0;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Estilo para mensaje de éxito */
.success-mensaje {
    text-align: center;
    color: #2ecc71;
    margin: 15px 0;
    padding: 10px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}