* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: url("./Assets/Images/BG1.jpeg") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}


/* Dark overlay over the background image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(22, 22, 22, 0.6));
  z-index: -1;
}

/* Header / nav bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

header .logo {
  font-size: 30px;
  color: #fff;
  user-select: none;
}

header .navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

header .navigation a {
  position: relative;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

header .navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

header .navigation a:hover::after {
  width: 100%;
}

header .btnLogin-popup {
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s ease;
}

header .btnLogin-popup:hover {
  background: #fff;
  color: #000;
}

/* Hero text in the middle-ish */
.hero-text {
  text-align: center;
  max-width: 600px;
  padding: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.hero-text h1 {
  font-size: 56px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 16px;
  opacity: 0.8;
}

/* Popup wrapper */
.wrapper {
  position: relative;
  width: 400px;
  height: 440px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  opacity: 1;
  transition: opacity 0.3s ease, transform 0.18s ease;
}


.wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Show popup */
.wrapper.active-popup {
  transform: scale(1);
}

/* Increase height when showing register form */
.wrapper.active {
  height: 520px;
}

/* Close icon */
.wrapper .icon-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.icon-close span {
  font-size: 20px;
  color: #000;
}

/* Form boxes */
.wrapper .form-box {
  width: 100%;
  padding: 60px 40px 40px;
}

/* Login is the default visible one */
.form-box.login {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

/* When wrapper has .active, slide login out */
.wrapper.active .form-box.login {
  transition: none;
  transform: translateX(-400px);
}

/* Registration is initially hidden (off to right) */
.form-box.register {
  position: absolute;
  transition: none;
  transform: translateX(400px);
}

/* When active, slide registration in */
.wrapper.active .form-box.register {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

.form-box h2 {
  font-size: 30px;
  text-align: center;
}

/* Input box styling */
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #fff;
  margin: 30px 0;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 16px;
  color: #fff;
  transition: 0.3s ease;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  padding: 0 35px 0 0;
}

.input-box .icon {
  position: absolute;
  right: 0;
  line-height: 50px;
  font-size: 18px;
}

/* Float labels when focused or filled */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
  font-size: 13px;
}

/* Remember / forgot row */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: -15px 0 15px;
}

.remember-forgot label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.remember-forgot a {
  color: #fff;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

/* In register form it's just terms text, so center it */
.remember-terms {
  justify-content: flex-start;
}

/* Buttons */
.btn {
  width: 100%;
  height: 45px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.25s ease;
}

.btn:hover {
  background: #f1f1f1;
}


.login-message {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.login-message.error {
  color: #ff6b6b;
}

.login-message.success {
  color: #4cd964;
}


/* Switch login/register text */
.login-register {
  font-size: 14px;
  text-align: center;
  margin: 25px 0 10px;
}

.login-register p a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.login-register p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .navigation a {
    display: none; /* keep it simple for now on mobile */
  }

  .hero-text {
    display: none; /* hide hero text on small screen to avoid clutter */
  }

  .wrapper {
    width: 90%;
  }
}

.logo-img {
  height: 92px;
  width: 92px;     /* force square */
  object-fit: cover;
  border-radius: 15%;
  opacity: 0;
}




