/* Login / Register ?game_tgn_0014 */

.g10-auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--main-header-height, 64px) + 32px) 16px 48px;
}

.g10-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--g10-radius);
  box-shadow: 0 0 32px rgba(255, 183, 197, 0.15);
  color: var(--text);
}

.g10-auth-head {
  margin: 0 0 1.25rem;
  padding-right: 2.5rem;
  font-family: var(--font-alt);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--pink);
  letter-spacing: 0.02em;
}

.g10-auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.g10-auth-tab {
  flex: 1;
  padding: 12px 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(74, 74, 74, 0.65);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.g10-auth-tab:hover {
  color: var(--text);
}

.g10-auth-tab.active {
  color: var(--mint);
  border-bottom-color: var(--pink);
  background: rgba(255, 183, 197, 0.06);
}

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

.g10-auth-alert {
  display: none;
  padding: 10px 12px;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.4;
}

.g10-auth-alert.show { display: block; }
.g10-auth-alert.success {
  color: #1e7e45;
  background: rgba(181, 234, 215, 0.45);
  border-color: rgba(39, 174, 96, 0.35);
}
.g10-auth-alert.error {
  color: #c0392b;
  background: rgba(255, 183, 197, 0.35);
  border-color: rgba(255, 105, 180, 0.45);
}

.g10-form-group {
  margin-bottom: 1rem;
}

.g10-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0.85;
}

.g10-form-input::placeholder {
  color: rgba(74, 74, 74, 0.65);
  opacity: 0.75;
}

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

.g10-form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.g10-form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 183, 197, 0.35);
}

.g10-form-group.has-error .g10-form-input {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 183, 197, 0.15);
}

.g10-form-error {
  display: none;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--pink);
}

.g10-form-group.has-error .g10-form-error { display: block; }

.g10-pwd-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(74, 74, 74, 0.65);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: color 0.18s ease;
}

.g10-pwd-toggle:hover {
  color: var(--mint);
}

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

.g10-btn-auth {
  width: 100%;
  height: 48px;
  margin-top: 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--mint));
  border: none;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.g10-btn-auth:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 183, 197, 0.45);
}

.g10-btn-auth.loading {
  pointer-events: none;
  opacity: 0.75;
}

.g10-btn-auth.loading .g10-btn-auth-text { visibility: hidden; }

.g10-btn-auth.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: g10-auth-spin 0.7s linear infinite;
}

@keyframes g10-auth-spin {
  to { transform: rotate(360deg); }
}

.g10-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.06em;
  color: rgba(74, 74, 74, 0.65);
}

.g10-auth-divider::before,
.g10-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(181, 234, 215, 0.15);
}

.g10-social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.g10-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.g10-social-btn--fb { background: #1877f2; }
.g10-social-btn--google { background: #ea4335; }
.g10-social-btn--twitter { background: #1da1f2; }
.g10-social-btn--steam { background: #171a21; }

@media (max-width: 480px) {
  .g10-auth-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .g10-auth-head {
    font-size: 1.35rem;
    padding-right: 2rem;
  }

  .g10-auth-tab {
    padding: 10px 8px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 767px) {
  .g10-auth-page {
    padding-bottom: calc(48px + var(--g10-mob-h, 56px));
  }
}

/* Login modal */
.g10-login-modal {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}

.g10-login-modal.is-open {
  display: flex;
}

.g10-login-modal[hidden] {
  display: none !important;
}

.g10-login-modal.is-open[hidden] {
  display: flex !important;
}

.g10-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 74, 74, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.g10-login-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.g10-login-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  line-height: 1;
  color: rgba(74, 74, 74, 0.65);
  background: var(--bg-cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.g10-login-modal__close:hover {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255, 183, 197, 0.45);
}

.g10-auth-card--modal {
  margin: 0;
  max-width: none;
  padding-top: 2.75rem;
  border-top: 3px solid var(--pink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.g10-auth-card--modal .g10-auth-head {
  padding-right: 0;
  margin-bottom: 1rem;
}

body.g10-login-open {
  overflow: hidden;
}
