:root {
  --primary-color: #4A1D8A;
  --primary-dark: #3a156e;
  --secondary-color: #f1f1f1;
  --accent-color: #ffca28;
  --text-color: #333;
  --text-light: #fff;
  --bg-color: #fafafa;
  --border-radius: 0.5rem;
  --transition-speed: 0.3s;
}

/* Estructura de página para sticky footer */
html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--primary-color);
}

/* Contenedor principal flexible */
.container-fluid {
  flex: 1;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}
.form-signin .form-floating:focus-within {
    z-index: 2;
}
.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Imagen del logo: prepara el 3D y la transición */
.logo-wrapper:hover .logo-img {
  transform: rotateY(360deg);
}

/* CSS: perspectiva y animación automática cada 10 s */
.logo-wrapper {
  display: inline-block;
  perspective: 600px;
}

.logo-img {
  display: block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: spin 5s ease-in-out infinite;
}

@keyframes spin {
  0%   { transform: rotateY(0deg); }
  10%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.footer {
 color: var(--text-light);
}

.cursor-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(12, 14, 19, 0.15),
        transparent 25%
    );
    transition: opacity 0.3s ease;
}

/* Efectos adicionales */
.glow-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 20px #aaa;
    opacity: 0;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .content {
        padding: 1rem;
    }
}