/* Common styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #020410;
  color: white;
}

#background-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: blur(8px);
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}
/* Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  font-size: 28px;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-links a i {
  font-size: 20px;
}

/* Underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: #00e6e6;
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-links a:hover {
  color: #00e6e6;
  transform: scale(1.05);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* Container ------------------------------------------------------------------------------------------*/
.container {
  display: flex;
  justify-content: space-between;
  width: 75%;
  max-width: 1200px;
  height: 500px;
  margin: 120px auto 0;
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  overflow: hidden;
}

/* Left content */
.content {
  flex: 0 0 58%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container .content .logo{
  text-decoration: none;
}

.text-sci p {
  font-size: 16px;
  margin: 20px 0;
  line-height: 1.6;
}

.typing {
  color: #00e6e6;
  font-weight: 700;
  font-size: 25px;
}

.social-icons a i {
  font-size: 28px;                   /* icon size */
  color: #00e6e6;                     /* cyan color */
  margin-right: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover i {
  transform: translateY(-4px) scale(1.2);  /* move up & enlarge */
  box-shadow: 0 4px 12px rgba(0, 230, 230, 0.6); /* subtle glow */
}

/* Right logreg-box */
.logreg-box {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
}

.logreg-box .form {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(10px);
  color: #e4e4e4;
  padding: 40px;
  border-radius: 16px;
  transition: left 0.5s ease;
}

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #e4e4e4 !important;
  caret-color: #00e6e6;
  transition: background-color 5000s ease-in-out 0s;
}

/* For Firefox */
input:-moz-autofill {
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -moz-text-fill-color: #e4e4e4 !important;
  caret-color: #00e6e6;
}
.login { left: 0; }
.register { left: 100%; }

.logreg-box.active .login { left: -100%; }
.logreg-box.active .register { left: 0; }

/* Input box */
.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 30px 0;
  border-bottom: 2px solid #e4e4e4;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #e4e4e4;
  font-size: 16px;
}

.input-box label {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  transition: .3s ease;
}

.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
  top: -5px;
}

.input-box .icon {
  position: absolute;
  top: 13px; right: 0;
  font-size: 19px;
}

/* Remember forgot */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  margin: -15px 0 15px;
}

.remember-forgot a {
  color: white;
  text-decoration: none;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

/* Buttons */
/* Buttons - Sign In & Sign Up with glow, border & hover effect */
.btn {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 45px;
  background: transparent;
  color: #00e6e6;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #00e6e6;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: #00e6e6;
  opacity: 0;
  z-index: -1;
  border-radius: 50%;
  transition: opacity 0.3s;
}

.btn:hover {
  color:white;
  box-shadow: 0 0 8px #00e6e6, 0 0 16px #00e6e6;
  transform: scale(1.03);
}

.btn:hover::before {
  opacity: 0.15;
}


/* Login register link */
.login-register {
  text-align: center;
  margin-top: 25px;
  font-size: 14.5px;
}

.login-register p a {
  color: #e4e4e4;
  font-weight: 600;
  text-decoration: none;
}

.login-register p a:hover {
  text-decoration: underline;
}

