/* Login / Register — game_tgn_0044 ATLAS DESK */

.g44-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
  min-height: 60vh;
}

.g44-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 30px;
  background: #fffdf8;
  color: #1c1917;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-left: 3px solid #0f766e;
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  position: relative;
}

.g44-auth-kicker {
  margin: 0 0 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
}

.g44-auth-head {
  margin: 0 0 20px;
  font-family: var(--g44-font, system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  color: #1c1917;
}

.g44-auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.35rem;
  padding: 3px;
  background: rgba(28, 25, 23, 0.05);
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 4px;
}

.g44-auth-tab {
  flex: 1;
  padding: 10px 12px;
  font: inherit;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #57534e;
  background: transparent;
  border: none;
  border-radius: 3px;
  margin: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.g44-auth-tab:hover { color: #1c1917; }

.g44-auth-tab.active {
  color: #0f766e;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.1);
}

.g44-auth-panel { display: none; }
.g44-auth-panel.active { display: block; }

.g44-auth-alert {
  display: none;
  padding: 10px 12px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
  border-radius: 4px;
}
.g44-auth-alert.show { display: block; }
.g44-auth-alert.success {
  color: #14532d;
  background: #ecfdf3;
  border-color: #86efac;
}
.g44-auth-alert.error {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fca5a5;
}

.g44-form-group { margin-bottom: 1.05rem; }

.g44-form-group label {
  display: block;
  margin-bottom: 7px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #57534e;
}

.g44-form-input-wrap { position: relative; }

.g44-form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: #1c1917;
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.16);
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.g44-form-input:hover {
  border-color: rgba(15, 118, 110, 0.4);
}

.g44-form-input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.g44-form-group.has-error .g44-form-input {
  border-color: #dc2626;
  box-shadow: none;
}

.g44-form-error {
  display: none;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: #b91c1c;
}
.g44-form-group.has-error .g44-form-error { display: block; }

.g44-pwd-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #57534e;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transform: none;
}
.g44-pwd-toggle:hover { color: #0f766e; }

.g44-pwd-icon {
  display: block;
  width: 18px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.g44-pwd-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: currentColor;
}

.g44-form-input.has-toggle { padding-right: 44px; }

.g44-auth-forgot {
  margin: -4px 0 12px;
  text-align: right;
  font-size: 0.8rem;
}
.g44-auth-forgot a { color: #57534e; text-decoration: none; }
.g44-auth-forgot a:hover { color: #0f766e; }

.g44-btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 0.65rem;
  padding: 0 14px;
  font: inherit;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #0f766e;
  border: 1px solid #0f766e;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.g44-btn-auth:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.g44-btn-auth:active { transform: translateY(0); }
.g44-btn-auth.loading {
  pointer-events: none;
  opacity: 0.75;
}
.g44-btn-auth.loading .g44-btn-auth-text { visibility: hidden; }
.g44-btn-auth.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: g44-auth-spin 0.7s linear infinite;
}
@keyframes g44-auth-spin { to { transform: rotate(360deg); } }

.g44-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.35rem 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #57534e;
}
.g44-auth-divider::before,
.g44-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(28, 25, 23, 0.12);
}

.g44-social-btns { display: flex; flex-direction: column; gap: 8px; }
.g44-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.g44-social-btn--fb { background: #1877f2; }
.g44-social-btn--google { background: #ea4335; }
.g44-social-btn--twitter { background: #1da1f2; }
.g44-social-btn--steam { background: #171a21; }

@media (max-width: 480px) {
  .g44-auth-card { padding: 22px 16px 24px; }
  .g44-auth-head { font-size: 1.28rem; }
}

/* Login modal */
.g44-login-modal {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.g44-login-modal.is-open { display: flex; }
.g44-login-modal[hidden] { display: none !important; }
.g44-login-modal.is-open[hidden] { display: flex !important; }

.g44-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.g44-login-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: g44-modal-in 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .g44-login-modal__panel { animation: none; }
}
@keyframes g44-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.g44-login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: #57534e;
  background: rgba(28, 25, 23, 0.04);
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.g44-login-modal__close:hover {
  color: #ffffff;
  background: #0f766e;
  border-color: #0f766e;
}

.g44-auth-card--modal {
  margin: 0;
  max-width: none;
  padding: 28px 28px 30px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}
.g44-auth-card--modal .g44-auth-head {
  padding-right: 36px;
  margin-bottom: 18px;
}

body.g44-login-open { overflow: hidden; }
body.g44-login-open .back-to-top,
body.g44-login-open .g44-back-top {
  visibility: hidden !important;
  pointer-events: none;
}