/* ...existing code... */

/* POPPINS FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --overlay: rgba(39,39,39,0.45);
  --glass: rgba(255,255,255,0.06);
  --accent: rgba(255,255,255,0.85);
  --btn-bg: rgba(255,255,255,0.75);
  --btn-bg-hover: rgba(255,255,255,0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Page background: image + subtle dark overlay.
   Replace ../images/bg.jpg with your image path or remote URL. */
body {
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("./images/freshforex.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
}

/* Hide the video wrapper if switching to static background */
.video-bg-wrapper {
  display: none;
}

/* Semi‑transparent page wrapper to center the form */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  z-index: 1;
}

/* Top navigation: glass + blur for a modern feel */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.nav-logo p {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  list-style-type: none;
}

.nav-menu ul li .link {
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 8px;
  transition: all .18s ease;
  border-radius: 6px;
  opacity: 0.95;
}

.nav-menu ul li .link:hover,
.nav-menu ul li .link.active {
  background: rgba(255,255,255,0.06);
  border-bottom: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.nav-button .btn {
  height: 40px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}

.nav-button .btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.nav-menu-btn {
  display: none;
}

/* FORM BOX - glass card with soft shadow */
.form-box {
  position: relative;
  width: 540px;
  max-width: 95%;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
  box-shadow: 0 12px 40px rgba(2,8,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(10px) saturate(120%);
  z-index: 30;
}

/* slightly elevated inner containers for login/register */
.login-container,
.register-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* header text inside the card */
header {
  color: #fff;
  font-size: 24px;
  text-align: center;
  padding-bottom: 6px;
  font-weight: 700;
}

/* top smaller text */
.top span {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  display: block;
  text-align: center;
}

/* Inputs - modern glassy inputs */
.input-field {
  font-size: 15px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  height: 48px;
  width: 100%;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  outline: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 2px 10px rgba(2,8,23,0.45) inset;
}

.input-field:hover,
.input-field:focus {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 28px rgba(2,8,23,0.55);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

::-webkit-input-placeholder {
  color: rgba(255,255,255,0.7);
}

/* icon inside input */
.input-box {
  position: relative;
}
.input-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  pointer-events: none;
}

/* primary submit button */
.submit {
  font-size: 15px;
  font-weight: 700;
  color: #0b1220;
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--btn-bg);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
  box-shadow: 0 8px 26px rgba(2,8,23,0.5);
}

.submit:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(2,8,23,0.6);
}

/* two small link columns below form */
.two-col {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 8px;
}

.two-col .one {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* link styles */
.two label a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
}

.two label a:hover {
  text-decoration: underline;
}

/* small helpers for spacing */
.two-forms {
  display: flex;
  gap: 10px;
}

/* responsive behavior */
@media only screen and (max-width: 986px) {
  .nav {
    height: 72px;
    padding: 0 16px;
  }
  .nav-logo p { font-size: 20px; }
  .form-box { width: 480px; padding: 20px; border-radius: 14px; }
}

@media only screen and (max-width: 786px) {
  .nav-button { display: none; }
  .nav-menu.responsive { top: 72px; }
  .nav-menu {
    position: absolute;
    top: -800px;
    left: 0;
    display: flex;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    width: 100%;
    height: 90vh;
    backdrop-filter: blur(20px);
    transition: .3s;
    z-index: 55;
  }
  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    margin-top: 40px;
  }
  .nav-menu-btn { display: block; }
  .nav-menu-btn i {
    font-size: 22px;
    color: #fff;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
  }
  .nav-menu-btn i:hover {
    background: rgba(255,255,255,0.06);
  }
  .form-box {
    width: 92%;
    padding: 20px;
    border-radius: 14px;
  }
}

@media only screen and (max-width: 540px) {
  .wrapper {
    min-height: 100vh;
    padding: 28px 12px;
  }
  .form-box {
    width: 100%;
    height: auto;
    padding: 18px;
  }
  .input-field { height: 44px; padding-left: 44px; border-radius: 10px; }
  .submit { height: 44px; border-radius: 10px; }
  .nav-menu { height: 100vh; }
  body { background-attachment: scroll; }
}