* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #000; /* Fallback color */
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Video background styles */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Make sure content stays above video */
nav, .search-section, .kaido-img, .footer, .modal {
  position: relative;
  z-index: 1;
}
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: darkblue;
  position: relative;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 600;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background-color: #00ff99;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: darkblue;
}

.nav-center {
  display: flex;
  gap: 20px;
}

.nav-center a, .nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-center a:hover, .nav-right a:hover {
  color: #00ff99;
  transform: scale(1.1);
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right .login {
  border: 1px solid white;
  padding: 6px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.nav-right .signup {
  background-color: #00ff99;
  color: black;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

.nav-right .signup:hover {
  background-color: #00cc7a;
}

.search-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 100px;
}

.search-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  width: 60%;
  max-width: 700px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.search-bar:hover {
  box-shadow: 0 0 25px #00ff99;
  transform: scale(1.03);
}

.search-bar input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
}

.search-bar button {
  background: #00ff99;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  border-radius: 0 40px 40px 0;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: linear-gradient(90deg, #00ff99, #00ccff, #ff0099);
}

.top-search {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #f1f1f1;
}

.kaido-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  max-width: 90%;
}

/*  */

.footer {
  position: absolute;
  bottom: 0;
  background: #00ff99;
  width: 100%;
  text-align: center;
  color: black;
  padding: 10px 0;
  font-weight: 600;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  color: #333;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background-color: darkblue;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #00ff99;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #00ff99;
  outline: none;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forgot-password {
  color: #00aaff;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  background-color: #00ff99;
  color: black;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #00cc7a;
}

.cloudflare-verify {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #666;
  flex-direction: column;
  align-items: center;
}

.cloudflare-text {
  color: #00aaff;
  font-weight: bold;
}

.privacy-terms {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 15px;
}

.privacy-terms a {
  color: #00aaff;
  text-decoration: none;
}

.privacy-terms a:hover {
  text-decoration: underline;
}

.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.register-link a {
  color: #00aaff;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .search-bar {
    width: 90%;
  }
  
  .kaido-img {
    width: 300px;
    opacity: 0.8;
  }
  
  .character-placeholder {
    width: 300px;
    height: 250px;
    font-size: 1.5rem;
  }
  
  nav {
    padding: 15px 20px;
  }
  
  .nav-center {
    display: none;
  }
  
  .search-section h1 {
    font-size: 2rem;
  }
}
/* ===== POPUP BACKGROUND ===== */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

/* ===== POPUP CONTAINER ===== */
.auth-container {
  background: #fff;
  width: 850px;
  max-width: 95%;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease;
}

.auth-left {
  flex: 1;
  padding: 40px;
  font-family: 'Poppins', sans-serif;
}

.auth-left h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
}

.auth-left p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ===== INPUTS ===== */
.auth-left input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.auth-btn {
  width: 100%;
  background: #121e2d;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 5px;
  transition: 0.3s;
}
.auth-btn:hover {
  background: #0d1726;
}

.forgot {
  float: right;
  font-size: 12px;
  color: #0b74ff;
  text-decoration: none;
}

/* ===== OR DIVIDER ===== */
.or-divider {
  text-align: center;
  margin: 20px 0;
  font-size: 13px;
  color: #999;
  position: relative;
}
.or-divider::before, .or-divider::after {
  content: "";
  height: 1px;
  width: 40%;
  background: #ddd;
  position: absolute;
  top: 50%;
}
.or-divider::before { left: 0; }
.or-divider::after { right: 0; }

/* ===== SOCIAL BUTTONS ===== */
.google-btn, .facebook-btn {
  width: 100%;
  background: #f4f4f4;
  padding: 10px;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 500;
}
.google-btn:hover, .facebook-btn:hover {
  background: #e9e9e9;
}

.switch-text {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

/* ===== RIGHT IMAGE SECTION ===== */
.auth-right {
  flex: 1;
  background: #000;
}
.auth-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CLOSE BUTTON ===== */
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes scaleIn {
  from {transform: scale(0.8);}
  to {transform: scale(1);}
}
