

* {
      box-sizing: border-box;
    }

    body {
	  margin: 0;
	  min-height: 100vh;
	  background-color: #1a1a1a;
	  color: #ffffff;
	  font-family: 'Press Start 2P', monospace;
	  display: flex;
	  justify-content: center;
	  align-items: center;
	}
	
	@media (max-width: 800px) {
	  body {
	    flex-direction: column;
	    align-items: stretch;
	  }
	
	  .container {
	    flex-direction: column;
	    height: auto;
	  }
	
	  .left-panel {
	    border-right: none;
	    border-bottom: 3px solid #ffffff;
	    padding: 1rem;
	    height: auto;
	  }
	
	  .right-panel {
	    height: auto;
	    padding: 1rem;
	  }
	
	  .matrix-container {
	    top: 18%;
	    left: 15%;
	    width: 70%;
	    height: 50%;
	  }
	}

    /* LADO IZQUIERDO */
    .container {
	  display: flex;
	  width: 100%;
	}
	
	.left-panel {
	  flex: 0.7; /* Más espacio que la derecha */
	  display: flex;
	  text-align: center;
	  justify-content: center;
	  align-items: center;
	  padding: 4rem;
	  margin-right: 0; /* Quita esto */
	}
	
	.right-panel {
	  flex: 0.9; /* Menos espacio */
	  display: flex;
	  justify-content: center;
	  align-items: flex-start; /* Esto hace que esté arriba */
	  padding-top: 4rem;
	}

    .page-title {
      font-size: 1rem;
      color: #ffffff;
      margin-bottom: 1.5rem;
    }

    .image-box img {
      max-width: 100%;
      height: auto;
    }

    /* LADO DERECHO */
    .right-panel {
	  flex: 1; /* O incluso menos si quieres aún más enfasis en el monitor */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  background-color: #1a1a1a;
	}

    .login-container {
	  background-color: #1c1123; /* más oscuro, tono púrpura apagado */
	  padding: 2rem;
	  text-align: center;
	  border: 2px solid #7e57c2; /* morado suave */
	  box-shadow: 0 0 12px #b695f666; /* sombra violeta clara con opacidad */
	  border-radius: 6px;
	  width: 460px;
	  height: auto;
	  max-width: 90%;
	}
	
	h1 {
	  font-size: 1rem;
	  margin-bottom: 4rem;
	  margin-top: -4rem;
	  color: #d0a3ff;
	  text-shadow: 0 0 5px #d0a3ff88;
	}
	
	form {
	  display: flex;
	  flex-direction: column;
	}
	
	label {
	  font-size: 0.6rem;
	  text-align: left;
	  margin-bottom: 0.5rem;
	  color: #b88cd5;
	}
	
	input[type="text"],
	input[type="password"] {
	  padding: 0.5rem;
	  margin-bottom: 1rem;
	  border: 2px solid #7e57c2;
	  background-color: #0e0e0e;
	  color: #c676d5;
	  font-family: 'Press Start 2P', monospace;
	  font-size: 0.7rem;
	  outline: none;
	  border-radius: 4px;
	  transition: border 0.2s, box-shadow 0.2s;
	}
	
	input[type="text"]::placeholder,
	input[type="password"]::placeholder {
	  color: rgba(198, 118, 213, 0.6);
	}
	
	input[type="submit"] {
	  padding: 0.8rem;
	  background-color: #7e57c2;
	  color: #fff;
	  border: 2px solid #d0a3ff;
	  font-weight: bold;
	  border-radius: 4px;
	  cursor: pointer;
	  font-size: 0.7rem;
	  transition: background-color 0.3s ease, box-shadow 0.3s ease;
	}
	
	input[type="submit"]:hover {
	  background-color: #a374d9;
	  box-shadow: 0 0 8px #caa1ff88;
	  border-color: #d0a3ff;
	}
	
	/* Estilo del botón Cancelar dentro del popup */
	#popup button[type="button"] {
	  background-color: #2c1c36;
	  border-color: #d0a3ff;
	  color: #d0a3ff;
	}
	
	#popup button[type="button"]:hover {
	  background-color: #4a2a5a;
	  border-color: #ffffff;
	  color: #ffffff;
	}
	
	/* Estilo del botón Restablecer del popup */
	#popup input[type="submit"] {
	  background-color: #7e57c2;
	  color: white;
	  border: 2px solid #d0a3ff;
	}
	
	#popup input[type="submit"]:hover {
	  background-color: #a374d9;
	}

    .footer {
      margin-top: 1.5rem;
      font-size: 0.5rem;
      color: #999999;
    }

    @media (max-width: 800px) {
      body, .container {
        flex-direction: column;
      }

      .left-panel {
        border-right: none;
        border-bottom: 3px solid #ffffff;
        padding: 1rem;
        height: auto;
      }

      .right-panel {
        height: auto;
        padding: 1rem;
      }
    }

.image-box {
  position: relative;
  width: 100%;
  max-width: 580px; /* Tamaño original de la imagen */
  margin: 0 auto;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.matrix-container {
  position: absolute;
  top: 20.5%;    /* Ajusta según la pantalla del monitor */
  left: 20.5%;   /* Ajusta según los bordes del marco */
  width: 59%;    /* Ajusta al ancho visible del monitor */
  height: 49%;   /* Ajusta al alto visible del monitor */
  background-color: transparent;
  overflow: hidden;
  z-index: 2;
}

#matrixCanvasText {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .matrix-container {
    background-color: transparent;
  }
}
    .page-title {
      font-size: 1rem;
      color: #ffffff;
      margin-bottom: 1.5rem;
    }

    .image-box img {
      max-width: 100%;
      height: auto;
    }
    
    .btn-register-small {
    	font-size: 0.6rem;
    	text-decoration: none;
    	color: white;
    }
	.btn-register-small:hover {
		color: gray;
	}
	.middle-image {
        opacity: 0.1;
    }
 /* Link '¿Has olvidado tu contraseña?' */
.btn-register-small {
  color: #ca8cdb;
  font-size: 0.6rem;
}

.btn-register-small:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #d35eff88;
}
/* PLACEHOLDER COLOR con opacidad */
.login-container input::placeholder {
  color: rgba(198, 118, 213, 0.6);
}
.btn-group {
  display: flex;
  gap: 1rem; /* espacio entre botones */
  margin-top: 1.5rem;
}

.btn-submit, .btn-cancel {
  flex: 1; /* igual ancho */
  padding: 0.85rem 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(182, 95, 255, 0.4);
}

.btn-submit {
  background: linear-gradient(135deg, #a75fff, #d177ff);
  color: #240050;
  border-color: #8a27c7;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #d177ff, #a75fff);
  color: #fff;
  box-shadow: 0 5px 15px rgba(209, 119, 255, 0.7);
  border-color: #b65fff;
}

.btn-cancel {
  background-color: #1a001a;
  color: #ff5c5c;
  border-color: #ff4c4c;
  box-shadow: 0 3px 8px rgba(255, 92, 92, 0.4);
}

.btn-cancel:hover {
  background-color: #33001a;
  color: #ff0000;
  box-shadow: 0 5px 15px rgba(255, 92, 92, 0.7);
  border-color: #ff1a1a;
}

a[href*="welcome.jsp"]:hover {
  background-color: #2a0038;
  color: #ffffff;
  box-shadow: 0 0 10px #d35effaa;
  transform: scale(1.02);
}