/* Экран входа/регистрации поверх игры. */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1c2333, #0b0e16 70%);
  font-family: "Courier New", monospace;
}

.auth-card {
  width: min(360px, 88vw);
  padding: 26px 22px;
  background: rgba(22, 27, 38, 0.96);
  border: 2px solid #2c3a52;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #5cc8ff;
  margin-bottom: 6px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: 1px solid #2c3a52;
  border-radius: 8px;
  color: #8b95a8;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.auth-tab.active {
  background: #24304a;
  color: #e9f1fb;
  border-color: #3f5a86;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-input {
  padding: 11px 12px;
  background: #11151f;
  border: 1px solid #2c3a52;
  border-radius: 8px;
  color: #eef2f7;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.auth-input:focus {
  border-color: #5cc8ff;
}

.auth-error {
  min-height: 16px;
  color: #ff6b7a;
  font-size: 13px;
  text-align: center;
}

.auth-submit {
  padding: 12px;
  background: #2f7fd0;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.auth-submit:disabled {
  opacity: 0.6;
}
.auth-submit:hover:not(:disabled) {
  background: #3a90e6;
}

.auth-guest {
  padding: 9px;
  background: transparent;
  border: none;
  color: #8b95a8;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.auth-guest:hover {
  color: #cdd6e6;
}
