@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background: linear-gradient(
    135deg,
    #0f2027,
    #203a43,
    #2c5364,
    #3a6073,
    #f6f6f8,
    #2c3e50,
    #4b6cb7,
    #b4c2de,
    #6c8396,
    #465d6c
  );
  background-size: 400% 400%;
  animation: darkGradientFlow 18s ease infinite;
}

/* =========================
  Navbar Styles
  ========================= */
header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  margin-bottom: 20px;
  width: 100%;
  align-items: center;
  font-weight: bold;
  background: #001226;
  color: #cccccc;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #001226;
  color: #cccccc;
  top: 0;
  z-index: 1000;
}

.logo {
  position: relative;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  padding-right: 5px;
  padding-bottom: 2px;
  display: flex;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo::after {
  content: "FLOW";
  color: #0090f0;
}

.navbar .logo span {
  color: #5bc0be;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 5px;
}

.navbar ul li a {
  padding: 8px 16px;
  background-color: #3a506b;
  color: #cccccc;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 100;
  transition: 0.3s;
}

.navbar ul li a:hover {
  border-radius: 50px;
  text-decoration: none;
  background-color: #5bc0be;
  color: #1e1e2f;
}

.navbar .btn {
  background-color: #5bc0be;
  color: #1e1e2f;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
}

.navbar .btn:hover {
  background-color: #3a506b;
  color: #cccccc;
}

.container {
  position: relative;
  width: 850px;
  height: 720px;
  background: #1d1d2a;
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.form-box {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  background: #1d1d2a;
  display: flex;
  color: #dddddd;
  align-items: center;
  text-align: center;
  padding: 40px;
  z-index: 1;
  transition: 0.6s ease-in-out 1.2s, visibility 0s 1s;
}

.container.active .form-box {
  right: 50%;
}

.form-box.signup {
  visibility: hidden;
}

.container.active .form-box.signup {
  visibility: visible;
}

form {
  width: 100%;
}

.container h1 {
  font-size: 36px;
  margin: -10px 0;
  color: #0a0a17;
}

.input-box {
  position: relative;
  margin: 30px 0;
}

.input-box input {
  width: 100%;
  padding: 13px 50px 13px 20px;
  background: #2e2e3c;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  color: #e0e0e0;
  font-weight: 500;
}

.input-box input::placeholder {
  color: #777;
  font-weight: 400;
}

.input-box input:not(:placeholder-shown) {
  background: #fff;
  color: black;
  border-color: #0a0a17;
  transform: scale(4px);
  transition: 0.3s ease-in-out;
}

.input-box .input-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #777;
  font-size: 20px;
  z-index: 1;
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(-50%);
  background: none;
  border: none;
  color: #777;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.forget-link {
  margin: -15px 0 15px;
}

.forget-link a {
  color: #cccccc;
  font-size: 14.5px;
  text-decoration: none;
}

.btn {
  width: 100%;
  height: 48px;
  position: relative;
  background: #238fa1;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #0a0a17;
  overflow: hidden;
}

.bttn {
  width: 100%;
  height: 48px;
  position: relative;
  background: #238fa1;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #0a0a17;
  overflow: hidden;
  --glow-x: 0%;
  --glow-y: 50%;
}

.bttn::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(
    rgba(255, 250, 200, 1),
    rgba(255, 140, 20, 0.95),
    rgba(255, 50, 0, 0.9),
    rgba(120, 0, 0, 0.85)
  );
  filter: blur(50px) brightness(2.5) saturate(2.5);
  pointer-events: none;
  left: var(--glow-x);
  top: var(--glow-y);
  transform: translate(-50%, -50%);
  transition: 0.2s ease;
  animation: blueFirePulse 2s infinite, flicker 1.2s infinite;
  z-index: 0;
}

.container a {
  font-size: 14.5px;
  margin: 15px 0;
  color: #cccccc;
}

.forget-link:hover {
  color: #238fa1;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  padding: 10px;
  border: 2px solid #555;
  border-radius: 50px;
  font-size: 24px;
  color: #dddddd;
  text-decoration: none;
  margin: 0 8px;
}

.social-icons a:hover {
  transition: 0.3s ease-in-out;
  background: black;
  border: 2px solid white;
  color: white;
}

.toogle-box {
  position: absolute;
  width: 100%;
  height: 100%;
}

.toogle-box::before {
  content: "";
  position: absolute;
  left: -250%;
  width: 300%;
  height: 100%;
  background: #238fa1;
  border-radius: 100px;
  z-index: 2;
  transition: 1.8s ease-in-out;
}

.container.active .toogle-box::before {
  left: 50%;
}

.toogle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  z-index: 2;
  transition: 0.6s ease-in-out;
}

.toogle-panel.toogle-left {
  left: 0%;
  transition-delay: 0.6s;
}

.container.active .toogle-panel.toogle-left {
  left: -50%;
  transition-delay: 0.6s;
}

.toogle-panel.toogle-rigth {
  right: -50%;
  transition-delay: 0.6s;
}

.container.active .toogle-panel.toogle-rigth {
  right: 0%;
  transition-delay: 1.2s;
}

.toogle-panel p {
  margin-bottom: 15px;
  color: #0a0a17;
}

.toogle-panel .btn {
  width: 160px;
  height: 46px;
  background: transparent;
  border: 2px solid #0a0a17;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0a0a17;
}

.toogle-panel .btn:hover {
  transition: 0.3s ease-in-out;
  background: #0a0a17;
  color: white;
}

p {
  padding: 5%;
  color: #dddddd;
}

.forgot-pass {
  position: relative;
  justify-content: center;
  align-items: center;
  width: 425px;
  height: fit-content;
  background: #1d1d2a;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  display: none;
  transform: scale(0.9);
  transition: all 0.6s ease-in-out;
  z-index: 5;
}

.forgot-pass.ani-forg-box {
  opacity: 1;
  visibility: visible;
  transform: scale(1.05);
}

.footer {
  position: absolute;
  bottom: 0;
  text-align: center;
  background-color: #3a506b;
  color: #cccccc;
  padding: 20px 10px;
  font-size: 14px;
  width: 100%;
  z-index: -1000;
}

.back-to-login-link {
  color: #cccccc;
  font-size: 14.5px;
  text-decoration: none;
}

.back-to-login-link:hover {
  color: #238fa1;
  text-decoration: underline;
}

/* reCAPTCHA Notice Styles */
.recaptcha-notice {
  margin: 15px 0;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.recaptcha-notice:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.recaptcha-notice a {
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.recaptcha-notice a:hover {
  color: #29b6f6;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recaptcha-notice {
    font-size: 10px;
    padding: 10px 12px;
    margin: 12px 0;
  }
}

@media (max-width: 480px) {
  .recaptcha-notice {
    font-size: 9px;
    padding: 8px 10px;
    margin: 10px 0;
    line-height: 1.3;
  }
}

/* Alternative style with icon (optional) */
.recaptcha-notice.with-icon {
  position: relative;
  padding-left: 35px;
}

.recaptcha-notice.with-icon::before {
  content: "🛡️";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* Compact version for smaller forms */
.recaptcha-notice.compact {
  font-size: 10px;
  padding: 8px 12px;
  margin: 10px 0;
}


/* =========================
  Animations
  ========================= */
@keyframes darkGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes firePulse {
  0%,
  100% {
    filter: blur(50px) brightness(2.5) saturate(2.5);
  }
  50% {
    filter: blur(60px) brightness(3) saturate(3);
  }
}

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }
  20%,
  24%,
  55% {
    opacity: 0.7;
  }
  22% {
    opacity: 0.5;
  }
}

@keyframes blueFirePulse {
  0%,
  100% {
    filter: blur(50px) brightness(2.5) saturate(2.5);
  }
  50% {
    filter: blur(60px) brightness(3) saturate(3);
  }
}

@media screen and (max-width: 650px) {
  .navbar {
    padding: 10px 20px;
  }

  .container {
    margin-top: 80px;
    height: calc(100vh - 100px);
    width: calc(100vw - 40px);
    border-radius: 5vw;
    margin-bottom: 20px;
  }

  .form-box {
    bottom: 0;
    width: 100%;
    height: 70%;
    padding: 10px;
    box-sizing: border-box;
  }

  .form-box.signup {
    overflow-y: auto;
    padding-top: 50px;
    -webkit-overflow-scrolling: touch;
  }

  .container.active .form-box {
    right: 0;
    bottom: 30%;
  }

  .toogle-box::before {
    left: 0;
    top: -270%;
    width: 100%;
    height: 300%;
    border-radius: 15vw;
  }

  .container.active .toogle-box::before {
    left: 0;
    top: 70%;
  }

  .toogle-panel {
    width: 100%;
    height: 30%;
  }

  .toogle-panel.toogle-left {
    top: 0;
  }

  .container.active .toogle-panel.toogle-left {
    top: -30%;
    left: 0;
  }

  .toogle-panel.toogle-rigth {
    right: 0;
    bottom: -30%;
  }

  .container.active .toogle-panel.toogle-rigth {
    bottom: 0;
  }

  .forgot-pass {
    margin: 20px;
  }

  .footer {
    position: fixed;
    bottom: 0;
    padding: 0;
    font-size: 10px;
    color: black;
    background: #3a506b;
    width: 100%;
    z-index: 1000;
  }

  .toogle-panel h1 {
    font-size: 30px;
  }

  .toogle-panel p {
    padding: 5px;
    margin-bottom: 0;
  }

  .input-box {
    margin: 15px 0;
  }
}

/* Additional fine-tuning for very small screens */
@media screen and (max-width: 400px) {
  .navbar {
    padding: 10px;
  }

  .toogle-panel h1 {
    font-size: 28px;
  }
}

/* Handle short screen heights (like mobile landscape or small phones) */
@media screen and (max-height: 860px) {
  .container {
    height: calc(100vh - 100px);
    overflow: hidden;
  }

  .form-box.signup {
    height: 70% !important;
    overflow-y: auto;
    padding-top: 20vh;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .toogle-panel h1 {
    font-size: 25px;
  }
}