/* =========================
   login / register 頁
========================= */
.auth-page {
  min-height: calc(100vh - 110px);
  background: #f4f4f4;
  padding: 48px 24px 60px;
  box-sizing: border-box;
}

.auth-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 36px;
  align-items: stretch;
}

.auth-visual {
  display: flex;
  align-items: stretch;
}

.auth-visual-card {
  width: 100%;
  min-height: 620px;
  border-radius: 28px;
  padding: 42px;
  box-sizing: border-box;
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-visual-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(244, 196, 48, 0.14);
  border: 1px solid rgba(244, 196, 48, 0.45);
  color: #f4c430;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-visual-card h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
}

.auth-visual-card p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.auth-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: rgba(255,255,255,0.92);
}

.auth-feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f4c430;
  font-weight: 900;
}

.auth-panel {
  background: #fff;
  border-radius: 28px;
  padding: 34px 32px 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.auth-brand {
  font-size: 15px;
  font-weight: 800;
  color: #b28704;
  margin-bottom: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-tab {
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #fff;
  color: #333;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: #f4c430;
  color: #111;
  border-color: #f4c430;
}

.auth-form.hidden {
  display: none;
}

.auth-form-title {
  font-size: 34px;
  font-weight: 900;
  color: #111;
  margin-bottom: 22px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.auth-input {
  width: 100%;
  height: 54px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  outline: none;
}

.auth-input:focus {
  border-color: #f4c430;
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.12);
}

.auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.auth-check-row input {
  margin-top: 4px;
}

.auth-submit-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: #f4c430;
  color: #111;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 24px rgba(244, 196, 48, 0.26);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 34px rgba(212,175,55,0.28);
}

.auth-switch-text {
  text-align: center;
  margin: 18px 0 0;
  color: #666;
  font-size: 15px;
}

.inline-switch-btn,
.inline-link-btn {
  border: none;
  background: transparent;
  color: #b28704;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-message {
  min-height: 24px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
}

.auth-message.error {
  color: #d93025;
}

.auth-message.success {
  color: #1b7f3b;
}

.policy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.policy-modal.hidden {
  display: none;
}

.policy-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 18px 44px rgba(0,0,0,0.2);
}

.policy-card h3 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

.policy-content {
  color: #444;
  line-height: 1.9;
  font-size: 16px;
}

.policy-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #555;
}

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual-card {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 24px 16px 40px;
  }

  .auth-panel {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .auth-form-title {
    font-size: 28px;
  }

  .auth-visual-card {
    min-height: 260px;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .auth-visual-card h1 {
    font-size: 32px;
  }

  .auth-visual-card p {
    font-size: 16px;
  }
}

.password-field {
  position: relative;
  margin-bottom: 16px;
}

.password-field .auth-input {
  margin-bottom: 0;
  padding-right: 52px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #666;
  padding: 0;
}

.toggle-password:hover {
  color: #111;
}

.hidden {
  display: none !important;
}

/* login / reset */
.auth-page {
  min-height: calc(100vh - 110px);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), #050505),
    url("images/cover.avif") center center / cover no-repeat fixed;
  padding: 70px 24px 80px;
}

.auth-panel,
.policy-card,
.verify-card {
  background: rgba(14,14,14,0.92);
  border: 1px solid rgba(244,196,48,0.22);
  color: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}

.auth-form-title,
.policy-card h3,
.verify-card h3 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  margin: 10px 0 14px;
  letter-spacing: -1px;
}

.auth-label,
.auth-check-row,
.auth-switch-text,

.verify-desc {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  font-size: 15px;
}

.verify-tip,
.policy-content {
  color: rgba(255,255,255,0.72);
}

.auth-input {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(244,196,48,0.25);
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.38);
}

.auth-tab {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(244,196,48,0.18);
}

.auth-tab.active,
.auth-submit-btn {
  background: #f4c430;
  color: #111;
}

.reset-shell {
  max-width: 540px;
  margin: 70px auto;
  display: block;
}

.reset-panel {
  width: 100%;
}

#registerRole option {
  color: #111;
  background: #fff;
}
