/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===== VIDEO BACKGROUND ===== */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Keeps video proportion and fills screen */
    z-index: -1;         /* Places it behind all other content */
    filter: brightness(0.8); /* Optional: darken the video for better contrast */
}


/* Make sure form and nav are above video */
.signup-background,
.signup-background * {
    position: relative;
    z-index: 1;
}


/* Background styling */
.signup-background {
  min-height: 100vh;
  background: linear-gradient(135deg, #141e30, #243b55);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Navigation bar */
.signup-nav {
  position: absolute;
  top: 20px;
  left: 40px;
}

.signup-nav img {
  width: 120px;
  height: auto;
  cursor: pointer;
}

/* Form container */
.form1 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px;
  margin-left: 580px;
  margin-top: 50px;
  width: 380px;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.6s ease-in-out;

}

/* Title */
.form1 h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 26px;
}

/* Input fields */
.signup-form input {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0 15px 0;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
  outline: none;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.signup-form input:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #00bcd4;
}

/* Full name fields side-by-side */
.full-name {
  display: flex;
  gap: 10px;
}

/* Error text styling */
span {
  color: #ff4d4d;
  font-size: 12px;
}

/* Register button */
.signup-button {
  text-align: center;
}

.signup-button button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.signup-button button:hover {
  background: linear-gradient(135deg, #26c6da, #00acc1);
}

/* Divider */
.divider {
  text-align: center;
  margin: 25px 0 15px 0;
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Google / Epic icons */
.additional-signup {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.additional-signup img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  transition: transform 0.3s ease;
}

.additional-signup img:hover {
  transform: scale(1.1);
}

/* Login link */
.login-link {
  text-align: center;
  font-size: 14px;
}

.login-link a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .form1 {
    width: 90%;
    padding: 30px 20px;
  }

  .full-name {
    flex-direction: column;
  }

  .signup-nav {
    left: 20px;
  }

  .signup-nav img {
    width: 90px;
  }
}
