/* Auth screens + shared logo */

.gd-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  line-height: 1;
}
.gd-logo__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: block;
}
.gd-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.gd-logo__text strong {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.gd-logo__text span {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}
.gd-logo--sm .gd-logo__mark { width: 28px; height: 28px; border-radius: 8px; }
.gd-logo--sm .gd-logo__text strong { font-size: 1.05rem; }
.gd-logo--lg .gd-logo__mark { width: 48px; height: 48px; border-radius: 14px; }
.gd-logo--lg .gd-logo__text strong { font-size: 1.55rem; }
.gd-logo--lg .gd-logo__text span { font-size: 0.74rem; }
.gd-logo--mark { gap: 0; }
.gd-logo--on-dark { color: #fff; }
.gd-logo--on-dark .gd-logo__text span { opacity: 0.65; }

/* Legacy square "G" → soft fallback if still used raw */
.gd-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(240,193,75,.95), #c9a227 55%, #8f6f12);
  color: #14120f;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.gd-auth {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: #14120f;
  background: #0c0d0b;
  -webkit-font-smoothing: antialiased;
}
.gd-auth__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(201,162,39,.22), transparent 55%),
    radial-gradient(700px 480px at 90% 85%, rgba(201,162,39,.12), transparent 50%),
    linear-gradient(160deg, #16140f 0%, #0c0d0b 45%, #12100c 100%);
}
.gd-auth__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
}
.gd-auth__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #f7f4ee;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.gd-auth__brand {
  display: inline-flex;
  text-decoration: none;
  color: #14120f;
  margin-bottom: 1.5rem;
}
.gd-auth__head {
  margin-bottom: 1.5rem;
}
.gd-auth__head h1 {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}
.gd-auth__head p {
  margin: 0;
  color: #6a675f;
  font-size: 0.95rem;
}
.gd-auth__form {
  display: grid;
  gap: 0.95rem;
}
.gd-auth__field {
  display: grid;
  gap: 0.4rem;
}
.gd-auth__field span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gd-auth__input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(20,18,15,.14);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: #fff;
  color: #14120f;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gd-auth__input:focus {
  outline: none;
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201,162,39,.22);
}
.gd-auth__submit {
  margin-top: 0.35rem;
  min-height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: #c9a227;
  color: #16140f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gd-auth__submit:hover {
  background: #dbb33a;
  transform: translateY(-1px);
}
.gd-auth__error {
  background: #fde8e8;
  color: #9b1c1c;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}
.gd-auth__hint {
  margin: 1.25rem 0 0;
  text-align: center;
  color: #6a675f;
  font-size: 0.85rem;
}
.gd-auth__hint a {
  color: #14120f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(20,18,15,.2);
}
.gd-auth__hint a:hover { border-bottom-color: #c9a227; }

.gd-auth--platform .gd-auth__panel {
  background: #f3f1eb;
}
