:root {
  --shadow-offset: 0;
  --shadow-blur: 15px;
  --shadow-spread: -5px;
  --shadow-color: rgba(255, 255, 255, 0.7);

  --tint-color: 255, 255, 255;
  --tint-opacity: 0.10;

  --frost-blur: 5px;

  --noise-frequency: 0.010;
  --distortion-strength: 150;

  --outer-shadow-blur: 24px;

  --menu-top: 100rem;
  --menu-left: -5rem;
  --watermark-offset-x: 3.5rem;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

form {
  position: absolute;
  display: flex;
  flex-direction: column;
  user-select: none;
  gap: 10px;
  width: 300px;
  margin-top: 300px;
  z-index: 100;
}

@media (max-width: 768px) {
  form {
    margin-top: 270px;
  }
}

input {
  padding: 10px;
  border: none;
  user-select: none;
  border-radius: 5px;
  background-color: #dbdbdb;
}

input:hover {
  background-color: #d4d4d4;
}

button {
  padding: 10px;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.get-started {
  position: relative;
  border-radius: 10px;
  height: 43px;
  width: 380px;
  user-select: none;
  margin-top: 50px;
  margin-left: -40px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 400;
  background: linear-gradient(to bottom, #363636, #1a1a1a, #000000);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .get-started {
    margin-top: 30px;
  }
}

.get-started:hover {
  background: linear-gradient(to bottom, #404040, #2a2a2a, #111111);
}

.error {
  color: red;
  margin-bottom: 10px;
  text-align: center;
}

.menu {
  position: absolute;
  width: 390px;
  height: 480px;
  border-radius: 30px;
  padding: 30px;
  margin-top: 60px;
  isolation: isolate;
  box-shadow: 0px 6px var(--outer-shadow-blur) rgba(0, 0, 0, 0.2);
  background-color: rgba(var(--tint-color), var(--tint-opacity));
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 30px;
  box-shadow: inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur)
    var(--shadow-spread) var(--shadow-color);
  background-color: rgba(var(--tint-color), var(--tint-opacity));
}

.menu::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 30px;
  backdrop-filter: blur(var(--frost-blur));
  -webkit-backdrop-filter: blur(var(--frost-blur));
  filter: url(#glass-distortion);
  -webkit-filter: url(#glass-distortion);
  isolation: isolate;
}

svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .menu {
    font-size: 24px;
    padding: 20px;
    margin-top: 20px;
  }
}

.forgot-password {
  position: absolute;
  cursor: pointer;
  color: white;
  user-select: none;
  margin-top: 150px;
  margin-left: 230px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 300;
  white-space: nowrap;
  opacity: 0.6;
  text-decoration: none !important;
}

.video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.sign-up {
  position: relative;
  color: black !important;
  user-select: none;
  top: 140px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  z-index: 1;
}

@media (max-width: 768px) {
  .sign-up {
    top: 100px;
  }
}

.sign-up-desc {
  position: relative;
  color: #424242;
  user-select: none;
  top: 207px;
  text-align: center;
  opacity: 1;
}

@media (max-width: 768px) {
  .sign-up-desc {
    top: 170px;
  }
}

.sign-up-sublines {
  position: relative;
  color: #424242;
  user-select: none;
  top: 245px;
  opacity: 1;
}

@media (max-width: 758px) {
  .sign-up-sublines {
    top: 210px;
  }
}

/* WATERMARK + BUTTON FIXAT, SINCRONIZAT CU BUTONUL */

#watermark {
  position: fixed;
  pointer-events: none;

  /* poziție relativă la buton – pe desktop */
  top: 18rem;
  left: 4.5rem;

  padding: 10px;
  height: 60px;
  width: 200px;
  border-radius: 15px;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 999;

  display: flex;
  justify-content: center;
  align-items: center;

  /* animație de intrare/ieșire */
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Când e activată clasa .show, watermark-ul intră lângă săgeată */
#watermark.show {
  opacity: 1;
  transform: translateX(0);
}

/* Pozițional pentru tablete / telefoane */
@media (max-width: 768px) {
  #watermark {
    top: 11rem;
    left: 4.2rem;
  }
  #watermark.show {
    margin-top: 380px;
    margin-left: 30px;
  }
}

#menuBtn,
#menuBtn span {
  all: unset;
}

#menuBtn {
  position: fixed !important;
  top: 20rem !important;
  left: 0rem !important;
  width: 40px !important;
  height: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  background: transparent !important;
  z-index: 1000 !important;
}

@media (max-width: 768px) {
  #menuBtn {
    margin-top: 360px !important;
    left: 1rem !important;
  }
}

#menuBtn span {
  display: block !important;
  height: 4px !important;
  width: 100% !important;
  background-color: #fff !important;
  border-radius: 2px !important;
  transition: all 0.3s ease !important;
  position: relative;
}

/* nu mai mutăm span-urile cu top în media – stricau poziția pe mobile */
/* @media (max-width: 768px) {
  #menuBtn span {
    top: 260px;
  }
} */

#menuBtn span:nth-child(1) {
  transform: rotate(150deg) translate(-5px, -5px) !important;
}

#menuBtn span:nth-child(2) {
  transform: rotate(20deg) translate(5px, -10px) !important;
}

#menuBtn.active span:nth-child(1) {
  transform: rotate(-155deg) translate(-15px, 5px) !important;
}

#menuBtn.active span:nth-child(2) {
  transform: rotate(150deg) translate(-18px, -2px) !important;
}

#watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 15px;
  box-shadow: inset var(--shadow-offset) var(--shadow-offset)
    var(--shadow-blur) var(--shadow-spread) var(--shadow-color);
  background-color: rgba(var(--tint-color), var(--tint-opacity));
}

#watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 15px;
  backdrop-filter: blur(var(--frost-blur));
  -webkit-backdrop-filter: blur(var(--frost-blur));
  filter: url(#glass-distortion);
  -webkit-filter: url(#glass-distortion);
  isolation: isolate;
}

#watermark img {
  max-height: 200px;
  max-width: 220px;
  object-fit: contain;
  padding-left: 15px;
  z-index: 1;
}

.circle-icon {
  position: absolute;
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  height: 12px;
  width: 9px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  margin-top: -210px;
  margin-left: 120px;
  border: 1px solid #c4c4c4;
}

@media (max-width: 768px) {
  .circle-icon {
    margin-top: -220px;
  }
}

.toast-host {
  position: fixed;
  top: 18px;
  right: 5px;
  z-index: 999999;
  pointer-events: none;
}

.toast {
  width: 300px;
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.toast-inner {
  background: rgba(255, 45, 85, 0.18); /* mai “vizibil” */
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  font-family: "Noto Sans JP", sans-serif;
  color: #fff;
}

.toast-msg {
  font-weight: 600;
  font-size: 16px;
  margin-left: 10px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.toast-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}

.toast-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left;
  background: rgba(255, 255, 255, 0.95);
  animation: toastProgress var(--toastMs, 4500ms) linear forwards;
}

.toast.toast-show {
  animation: toastIn 320ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.toast.toast-hide {
  animation: toastOut 260ms cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.captcha-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100000;
}

.captcha-modal.show {
  display: flex;
}

.captcha-modal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.captcha-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, 95vw);
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  font-family: "Noto Sans JP", sans-serif;
  color: #f2f2f2;
}

.captcha-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.captcha-modal__desc {
  margin: 0 0 14px;
  font-size: 14px;
  opacity: 0.85;
  min-height: 18px;
}

.captcha-modal__widget {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.captcha-modal__widget #recaptchaWidget,
.captcha-modal__widget #cf-turnstile {
  display: none;
}

.captcha-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.captcha-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
