.gh-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gh-auth-modal.is-open {
  display: flex;
}

.gh-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(10px);
}

.gh-auth-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 30px;
  padding: 38px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .35);
}

.gh-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  font-weight: 900;
}

.gh-auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.gh-auth-brand span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #1e3a8a;
  color: #fbbf24;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 22px;
}

.gh-auth-brand strong {
  font-size: 26px;
  color: #0f172a;
  font-weight: 950;
}

.gh-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  border-radius: 18px;
  padding: 6px;
  margin-bottom: 24px;
}

.gh-auth-tabs button {
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  color: #64748b;
  font-weight: 950;
  cursor: pointer;
}

.gh-auth-tabs button.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(15,23,42,.08);
}

.gh-auth-panel {
  display: none;
}

.gh-auth-panel.active {
  display: block;
}

.gh-auth-form {
  display: grid;
  gap: 14px;
}

.gh-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gh-auth-form input {
  width: 100%;
  height: 58px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 850;
  color: #0f172a;
  outline: none;
}

.gh-auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.gh-password-field {
  position: relative;
}

.gh-password-field input {
  padding-right: 58px;
}

.gh-password-field button {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.gh-auth-forgot {
  justify-self: end;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.gh-auth-submit {
  height: 58px;
  border: 0;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  margin-top: 4px;
}

.gh-auth-submit:hover {
  background: #1d4ed8;
}

.gh-password-strength {
  display: grid;
  gap: 7px;
  margin-top: -4px;
}

.gh-password-strength span {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.gh-password-strength span::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--strength, 0%);
  background: var(--strength-color, #ef4444);
  border-radius: 999px;
  transition: .25s;
}

.gh-password-strength em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.gh-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.gh-terms-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.gh-terms-check a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 950;
}

.gh-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 850;
}

.gh-auth-divider::before,
.gh-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.gh-social-buttons {
  display: grid;
  gap: 12px;
}

.gh-google-btn,
.gh-facebook-btn {
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
}

.gh-google-btn {
  background: #fff;
  border: 1px solid #dbe3ef;
  color: #0f172a;
}

.gh-google-btn span {
  color: #ea4335;
  font-size: 22px;
  font-weight: 950;
}

.gh-facebook-btn {
  background: #1877f2;
  border: 1px solid #1877f2;
  color: #fff;
}

.gh-facebook-btn span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #1877f2;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 950;
}

@media (max-width: 600px) {
  .gh-auth-box {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .gh-auth-row {
    grid-template-columns: 1fr;
  }

  .gh-auth-brand strong {
    font-size: 23px;
  }
}