/* =========================
   Signup Page
========================= */

.signup-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 30px 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(199, 154, 69, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(74, 43, 18, 0.1), transparent 38%), var(--cream);
}

.signup-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  animation: signupGlowMove 6s ease-in-out infinite;
}

.glow-one {
  width: 260px;
  height: 260px;
  top: 12%;
  right: 12%;
  background: rgba(199, 154, 69, 0.16);
}

.glow-two {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: 10%;
  background: rgba(74, 43, 18, 0.1);
  animation-delay: 1.4s;
}

@keyframes signupGlowMove {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.06);
  }
}

.signup-card {
  width: 100%;
  max-width: 485px;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at top right, rgba(199, 154, 69, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 43, 18, 0.08);
  border-radius: 34px;
  padding: 36px;
  box-shadow:
    0 28px 90px rgba(43, 23, 8, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: signupCardEnter 0.75s ease both;
}

.signup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(241, 215, 155, 0.45),
    transparent,
    rgba(74, 43, 18, 0.1)
  );
  z-index: -1;
  opacity: 0.8;
}

@keyframes signupCardEnter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.signup-home-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(241, 215, 155, 0.22), transparent 45%),
    linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: var(--gold-soft);
  text-decoration: none;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 38px rgba(43, 23, 8, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.signup-home-btn i {
  font-size: 24px;
  line-height: 1;
}

.signup-home-btn:hover {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--gold-soft);
  color: var(--brown-dark);
  box-shadow: 0 22px 52px rgba(43, 23, 8, 0.26);
}

.signup-logo {
  width: fit-content;
  margin: 10px auto 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.signup-logo img {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
  box-shadow: 0 14px 34px rgba(43, 23, 8, 0.1);
  animation: signupLogoFloat 3s ease-in-out infinite;
}

@keyframes signupLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.signup-logo strong {
  display: block;
  color: var(--brown-dark);
  font-size: 25px;
  line-height: 1;
}

.signup-logo span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  margin-top: 7px;
  direction: ltr;
}

.signup-head {
  text-align: center;
  margin-bottom: 24px;
}

.signup-head h1 {
  color: var(--brown-dark);
  font-size: 34px;
  line-height: 1.15;
  margin: 0;
}

.signup-form {
  display: grid;
  gap: 15px;
}

.signup-group label {
  display: block;
  color: var(--brown-dark);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 14px;
}

.signup-input-box {
  min-height: 58px;
  border-radius: 20px;
  border: 1px solid rgba(74, 43, 18, 0.11);
  background: rgba(255, 255, 255, 0.74);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.signup-input-box i {
  color: var(--gold);
  font-size: 20px;
}

.signup-input-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brown-dark);
  font-family: inherit;
  font-size: 15px;
}

.signup-input-box input::placeholder {
  color: rgba(74, 43, 18, 0.42);
}

.signup-input-box:focus-within {
  border-color: rgba(199, 154, 69, 0.7);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(199, 154, 69, 0.12);
  transform: translateY(-2px);
}

.signup-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown));
  color: var(--gold-soft);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 45px rgba(43, 23, 8, 0.18);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.signup-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 65px rgba(43, 23, 8, 0.25);
}

.signup-btn i {
  transition: 0.3s ease;
}

.signup-btn:hover i {
  transform: translateX(-5px);
}

.signup-switch {
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.7;
}

.signup-switch a {
  color: var(--brown-dark);
  text-decoration: none;
  font-weight: 900;
  transition: 0.25s ease;
}

.signup-switch a:hover {
  color: var(--gold);
}

@media (max-width: 620px) {
  .signup-page {
    padding: 20px 14px;
  }

  .signup-card {
    padding: 28px 22px;
    border-radius: 30px;
  }

  .signup-home-btn {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .signup-home-btn i {
    font-size: 21px;
  }

  .signup-logo {
    margin-top: 18px;
  }

  .signup-logo img {
    width: 70px;
    height: 70px;
  }

  .signup-logo strong {
    font-size: 22px;
  }

  .signup-head h1 {
    font-size: 29px;
  }

  .signup-input-box,
  .signup-btn {
    min-height: 56px;
  }
}

.toast-message {
  position: fixed;
  top: 104px;
  left: 24px;
  z-index: 99999;
  min-width: 280px;
  max-width: calc(100% - 48px);
  padding: 15px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  box-shadow: 0 18px 55px rgba(43, 23, 8, 0.22);
  animation: toastIn 0.35s ease forwards;
}

.toast-message i {
  font-size: 20px;
}

.toast-success {
  background: linear-gradient(135deg, #176b42, #22a66a);
  color: #ffffff;
}

.toast-error {
  background: linear-gradient(135deg, #7a1f1f, #c0392b);
  color: #ffffff;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .toast-message {
    top: 88px;
    left: 12px;
    right: 12px;
    min-width: auto;
    max-width: none;
  }
}
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.7;
}

.auth-alert.error {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffc9c9;
}

.auth-alert.success {
    background: #eaf8ef;
    color: #16803c;
    border: 1px solid #bfe8cc;
}