/* Default styles */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(0, 0, 0);
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/packages/media/login-bg-1.gif') center center no-repeat;
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
  filter: blur(10px);
}

.login-container {
  background: rgba(0, 0, 0, 0.555);
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0px 0px 20px 1px #4e4e4e;
  max-width: 600px;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgb(255, 255, 255);
  font-family: 'Courier New', Courier, monospace;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

label {
  margin-bottom: 5px;
}

input {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #2c2c2c;
  background-color: #2c2c2c;
  width: 250px;
}


/* -------------------------------------------------------------- */


/* button */
.btn {
  padding: 15px 40px;
  font-size: 18px;
  border: none;
  outline: none;
  color: #FFF;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 12px;
}
.btn::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
  top: 0;
  border-radius: 10px;
}
/* glow */
.btn::before {
  content: "";
  background: linear-gradient(
    45deg,
    #FF0000, #FF7300, #FFFB00, #48FF00,
    #00FFD5, #002BFF, #FF00C8, #FF0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height:  calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
  opacity: 0;
}

@keyframes glowing {
  0% {background-position: 0 0;}
  50% {background-position: 400% 0;}
  100% {background-position: 0 0;}
}

/* hover */
.btn:hover::before {
  opacity: 1;
}

.btn:active:after {
  background: transparent;
}

.btn:active {
  color: #000;
  font-weight: bold;
}

/* ------------------------------------------------------------- */



/* Glow effect container for button and inputs */
.glow-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}

.glow-container::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* Glow effect */
.glow-container::before {
  content: "";
  background: linear-gradient(
    45deg,
    #FF0000, #FF7300, #FFFB00, #48FF00,
    #00FFD5, #002BFF, #FF00C8, #FF0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 600%;
  z-index: -1;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  filter: blur(8px);
  animation: glowing 20s linear infinite;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
  opacity: 0;
}

/* Animation for the glow effect */
@keyframes glowing {
  0% {background-position: 0 0;}
  50% {background-position: 400% 0;}
  100% {background-position: 0 0;}
}

/* hover/focus glow effect */
.glow-container:hover::before,
.glow-container:focus-within::before {
  opacity: 1;
}

/* Input-specific styles */
input[type="text"].glow-effect,
input[type="password"].glow-effect {
  padding: 15px 10px;
  font-size: 16px;
  color: #FFF;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  border: none;
  outline: none;
  background-color: #333;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}