.auth-page {
  min-height: 100vh;
  background: #fff;
  color: #1f2937;
  font: 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
}

.auth-page #site-header { display: none; }
.auth-page main { max-width: none; margin: 0; padding: 0; }
.auth-screen { min-height: 100vh; background: #fff; }
.auth-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 44px;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #ff7a00, #ff9500);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.auth-header .back-btn {
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.auth-body { padding-bottom: 20px; }
.logo-wrap { display: flex; justify-content: center; align-items: center; padding: 30px 0 20px; }
.line-logo { display: block; width: 100px; height: 100px; }
.auth-body h1 { margin: 0; color: #111; text-align: center; font-size: 18px; font-weight: 600; }
.welcome-desc { margin: 10px 0 0; padding: 0 50px; color: #333; text-align: center; font-size: 13px; line-height: 1.6; }
.auth-form {
  display: block;
  margin: 30px 20px 0;
  padding: 15px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 8px #0f294d33;
}

.step-title { color: #333; font-size: 14px; font-weight: 600; }
.step-title.second { margin-top: 12px; }
.auth-field { display: block; margin-bottom: 10px; }
.auth-field > span { display: block; margin-bottom: 4px; color: #646566; font-size: 13px; }
.auth-field b { margin-right: 2px; color: #dd524d; font-weight: 400; }
.auth-field input {
  width: 100%;
  height: 35px;
  padding: 0 0 0 10px;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #646566;
  font-size: 13px;
  line-height: 35px;
}
.auth-field input::placeholder { color: #d9d9d9; font-size: 11px; }
.sms-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sms-row input { flex: 1; min-width: 0; }
.auth-form .send-btn {
  flex: none;
  min-height: 0;
  padding: 5px 15px;
  border: 0;
  border-radius: 3px;
  background: #eee;
  color: #333;
  font-size: 11px;
  font-weight: 400;
}
.auth-form .send-btn:disabled { opacity: .7; }
.not-received-btn {
  display: block;
  margin: 4px 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 11px;
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  height: 40px;
  margin-top: 15px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff4500, orange);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 40px;
}
.auth-status { min-height: 20px; margin: 6px 0 -6px; color: #dd524d; text-align: center; font-size: 12px; }
.auth-footer { display: block; width: 100%; height: 100px; margin-top: 50px; object-fit: cover; }

@media (max-width: 640px) {
  .welcome-desc { padding: 0 24px; }
  .auth-form { margin: 24px 16px 0; }
}

.visitor-popup-mask {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #00000073;
}

.visitor-popup {
  width: 100%;
  max-width: 280px;
  padding: 18px 16px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px #0000002e;
  text-align: center;
}

.visitor-popup h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.visitor-popup p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  word-break: break-word;
}

.visitor-popup button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #06c755, #04a849);
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  cursor: pointer;
}
