/* Auth modal — style matches the reference screenshot */
.gtm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.18s ease;
}
.gtm-overlay.gtm-open { opacity: 1; }
.gtm-modal {
  width: 100%; max-width: 488px;
  background: #1c1c1e;
  border-radius: 24px;
  padding: 44px 44px 36px;   /* content width = 400px — exactly the max Google button width */
  color: #f5f5f7;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translateY(8px);
  transition: transform 0.18s ease;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  text-align: center;
}
.gtm-overlay.gtm-open .gtm-modal { transform: translateY(0); }

.gtm-title {
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 10px; color: #fff;
}
.gtm-sub {
  font-size: 15px; color: #8e8e93; line-height: 1.45;
  margin: 0 auto 30px; max-width: 380px;
}

.gtm-google {
  width: 100%; height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px;
  background: #fff; color: #111;
  font-size: 16px; font-weight: 500; cursor: pointer;
  font-family: inherit;
}
.gtm-google:hover { background: #ececee; }
.gtm-google svg { width: 20px; height: 20px; }

.gtm-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 24px; color: #6e6e73; font-size: 14px;
}
.gtm-divider::before, .gtm-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12);
}

.gtm-form { text-align: left; }
.gtm-field { margin-bottom: 18px; }
.gtm-field label {
  display: block; font-size: 15px; font-weight: 500;
  color: #f5f5f7; margin-bottom: 8px;
}
.gtm-field input {
  width: 100%; box-sizing: border-box;
  padding: 14px 16px; border-radius: 10px;
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7; font-size: 15px; outline: none;
  font-family: inherit;
}
.gtm-field input::placeholder { color: #55555a; }
.gtm-field input:focus { border-color: rgba(255, 255, 255, 0.3); }

.gtm-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 22px; font-size: 15px;
}
.gtm-remember { display: flex; align-items: center; gap: 9px; color: #c7c7cc; cursor: pointer; }
.gtm-remember input {
  width: 17px; height: 17px; margin: 0; cursor: pointer;
  accent-color: #fff;
}
.gtm-forgot { color: #f5f5f7; text-decoration: underline; }
.gtm-forgot:hover { color: #fff; }

.gtm-submit {
  width: 100%; height: 54px;
  border: 0; border-radius: 999px;
  background: #fff; color: #111;
  font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.gtm-submit:hover { background: #ececee; }

.gtm-switch { font-size: 15px; color: #8e8e93; margin: 22px 0 0; }
.gtm-switch a { color: #f5f5f7; text-decoration: underline; cursor: pointer; }
.gtm-switch a:hover { color: #fff; }

.gtm-terms { font-size: 13px; color: #6e6e73; margin: 16px 0 0; }
.gtm-terms a { color: #98989d; text-decoration: underline; }
.gtm-terms a:hover { color: #c7c7cc; }

.gtm-msg {
  display: none; margin-top: 16px; padding: 11px 14px;
  border-radius: 10px; font-size: 14px; text-align: center;
  background: rgba(76, 175, 130, 0.14); color: #7fd6a8;
  border: 1px solid rgba(76, 175, 130, 0.3);
}
.gtm-msg.gtm-show { display: block; }
.gtm-msg.gtm-err {
  background: rgba(248, 81, 73, 0.12);
  color: #ff9a94;
  border-color: rgba(248, 81, 73, 0.35);
}

/* Real Google Identity Services button container — hugs the button exactly */
.gtm-google-gis {
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
}
.gtm-submit:disabled { cursor: default; }

@media (max-width: 560px) {
  .gtm-modal { padding: 32px 22px 26px; border-radius: 18px; }
  .gtm-title { font-size: 25px; }
}
