/* =========================
   Register Page
   ========================= */

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #090916;
  color: white;
  padding: 60px 30px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/btz-pattern-white.png");
  background-repeat: repeat;
  background-size: 168px auto;
  background-position: -4px 6px;
  opacity: 0.045;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(16, 244, 139, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(9, 9, 22, 0.08), rgba(9, 9, 22, 0.72));
}

body > * {
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-box {
  text-align: center;
  margin-bottom: 50px;
}

.logo {
  width: 300px;
  height: 300px;
  border-radius: 100%;
  object-fit: cover;
}

/* Register Card */
.login-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(19, 19, 44, 0.84);
  padding: 35px 25px;
  border: 1px solid rgba(45, 45, 83, 0.95);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 26px;
}

/* Input */
.input-box {
  width: 100%;
  height: 48px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 22px;
  background: rgba(19, 19, 44, 0.95);
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-box:focus-within {
  border-color: #10f48b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(16, 244, 139, 0.14);
}

.input-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 20px;
}

.input-icon svg,
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-icon,
.invite-icon {
  color: #8b5cf6;
}

.lock-icon {
  color: #f3b72b;
}

.input-box input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
}

.password-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: #ffffff;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

.input-box input::placeholder {
  color: white;
  font-weight: 400;
}

/* Register Button */
#registerBtn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 7px;
  background: #10f48b;
  color: #1b1a18;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#registerBtn:hover {
  background: #00ce80;
}

/* Result */
#result {
  text-align: center;
  margin-top: 15px;
  font-weight: 500;
}

/* Bottom Login Link */
.bottom-link {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bottom-link span {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.bottom-link p {
  font-size: 14px;
  font-weight: 400;
}

.bottom-link a {
  color: #00c853;
  text-decoration: none;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 480px) {
  body {
    padding: 45px 22px;
  }

  .logo {
    width: 150px;
    height: 150px;
  }

  .login-card {
    padding: 30px 22px;
  }

  .bottom-link span {
    width: 70px;
  }
}

@media (max-width: 380px) {
  body {
    padding: 32px 14px;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .logo-box {
    margin-bottom: 32px;
  }

  .login-card {
    padding: 24px 14px;
  }

  .bottom-link span {
    width: 40px;
  }
}
