@font-face {
  font-family: 'blackchancery';
  src: url('../blackchancery/BLKCHCRY.TTF') format('truetype');
}

@keyframes twinkling {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

@keyframes fadeInAndMove {
  0% {
    visibility: 0.1;
    opacity: 0;
    top: 30%; /* Initial position */
  }
  100% {
    visibility: 1;
    opacity: 1;
    top: 10%; /* Final position */
  }
}

body {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  font-family: 'blackchancery', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  animation: twinkling 20s linear infinite alternate; /* Animated Background */
}

.popup {
  display: none;
  position: fixed;
  z-index: 2;
  top: 15%; /* Initial position */
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95); /* semi-transparent white background */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* drop shadow effect */
  max-width: 400px;
  width: 90%;
  animation: fadeInAndMove 1s forwards; /* Apply animation */
  margin-top: 5px
}

.popup-content {
  padding: 20px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h2 {
  margin: 0;
  font-size: 1.2em;
}

.close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.popup-body {
  margin-top: 10px;
}

.popup-body a {
  color: #990000;
  text-decoration: none;
  text-decoration: bold;
}

.error-popup {
  background-color: #ffcccc; /* Light red background for error popup */
  color: #990000; /* Dark red text color for error popup */
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* Ensures the container is above the background */
  width: 400px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.75);
}

  
.logo {
  width: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #fff); /* Glowing Effect */
  user-select: none; /* Disable text selection */
}

h1 {
  font-family: 'blackchancery', sans-serif;
  font-size: 32px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.h1-animation {
  animation: fadeIn 1s ease; /* Fade-in Animation */
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: left;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  margin-bottom: 20px;
}

button {
  padding: 12px 20px;
  font-size: 18px;
  background-color: #49A663;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1; /* Ensure buttons are above the background */
}

button:hover {
  background-color: #3E7D50;
  transform: scale(1.05); /* Hover Effect */
}

button:active {
  background-color: #317F43;
}

.separator {
  margin: 20px 0;
  font-size: 18px;
  color: #ccc;
}

.google-login,
.google-signup {
  background-color: #DB4437;
  margin-bottom: 20px;
  z-index: 1; /* Ensure Google buttons are above the background */
}

.signup-link,
.login-link {
  font-size: 14px;
  color: #ccc;
  z-index: 1; /* Ensure links are above the background */
}

.signup-link a,
.login-link a {
  color: #fff;
  text-decoration: none;
}

.signup-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

.Signup {
  display: none; /* Ensure the signup section is initially hidden */
}