.auth-body {
  margin: 0;
  min-height: 100vh;
  color: #f4ead8;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background-color: #070708;
  background-image:
    linear-gradient(105deg, rgba(7, 7, 8, 0.94) 0%, rgba(7, 7, 8, 0.78) 42%, rgba(7, 7, 8, 0.28) 68%, rgba(7, 7, 8, 0.18) 100%),
    url("/img/auth-jewels.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 52%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 52%);
}

.auth-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 28px;
}

.auth-shell {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 430px);
  gap: 64px;
  align-items: center;
  flex: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  font-family: "Playfair Display", Fraunces, Georgia, serif;
  font-size: 2.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #d4af37;
}

.auth-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
}

.auth-copy h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Playfair Display", Fraunces, Georgia, serif;
  font-size: clamp(2.05rem, 3.6vw, 2.65rem);
  line-height: 1.22;
  font-weight: 500;
  color: #f3efe6;
}

.auth-points {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(214, 205, 188, 0.72);
  font-size: 1.02rem;
  font-weight: 400;
}

.auth-card {
  background: rgba(14, 13, 12, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  padding: 36px 32px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card h2 {
  margin: 0 0 26px;
  text-align: center;
  font-family: "Playfair Display", Fraunces, Georgia, serif;
  font-size: 1.42rem;
  font-weight: 500;
  color: #f7f1e4;
}

.auth-card form {
  margin-top: 0;
}

.auth-card .field {
  position: relative;
  margin-bottom: 14px;
}

.auth-card .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.auth-card input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 42px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  background: rgba(8, 8, 10, 0.82);
  color: #f7f1e4;
  font-size: 0.95rem;
}

.auth-card input::placeholder {
  color: rgba(214, 205, 188, 0.55);
}

.auth-card input:focus {
  outline: none;
  border-color: #d4af37;
}

.auth-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(232, 200, 114, 0.8);
  pointer-events: none;
}

.auth-ico-left { left: 14px; }
.auth-ico-right { right: 14px; }

.auth-turnstile {
  margin: 14px 0 4px;
  min-height: 65px;
}

.auth-turnstile iframe {
  max-width: 100%;
}

.auth-card button[type="submit"],
.auth-card .auth-btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: #d4af37;
  color: #000;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-card button[type="submit"]:hover,
.auth-card .auth-btn-primary:hover {
  background: #e0c15a;
}

.auth-shell-error {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.auth-card p {
  margin: 0 0 12px;
  color: rgba(243, 239, 230, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 12px;
  box-sizing: border-box;
  border: 1px solid #d4af37;
  border-radius: 10px;
  color: #d4af37;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: #0c0b0a;
  cursor: pointer;
}

.auth-btn-ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #e8c872;
}

.auth-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: rgba(214, 205, 188, 0.55);
  font-size: 0.72rem;
}

.auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(159, 45, 45, 0.18);
  border: 1px solid rgba(240, 160, 160, 0.35);
  color: #f3c4c4;
  font-size: 0.88rem;
}

.auth-foot {
  position: relative;
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(214, 205, 188, 0.5);
}

.auth-spark {
  position: absolute;
  right: 8%;
  bottom: 6px;
  width: 14px;
  height: 14px;
  color: rgba(232, 200, 114, 0.7);
}

@media (max-width: 800px) {
  .auth-body {
    background-position: center top;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 440px;
  }

  .auth-main {
    padding: 22px 14px 16px;
    align-items: flex-start;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-brand {
    justify-content: center;
    margin-bottom: 16px;
    font-size: 2.1rem;
  }

  .auth-copy h1 {
    max-width: none;
    font-size: 1.7rem;
  }

  .auth-points {
    align-items: center;
  }

  .auth-card {
    padding: 26px 18px 18px;
  }

  .auth-spark {
    right: 12px;
  }
}
