body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(120deg, #f1f4fb 0%, #ebeef9 40%, #f3f5fb 100%);
  color: #1f2937;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
}

.auth-wrap {
  width: min(420px, calc(100vw - 24px));
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(140deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%);
}

.auth-brand-text {
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 30px 22px 22px;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #111827;
}

.auth-bonus-hint {
  margin: 14px auto -2px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96) 0%, rgba(254, 249, 195, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.12);
  text-align: center;
  color: #c2410c;
  font-size: 14px;
  font-weight: 600;
}

.auth-form {
  margin-top: 26px;
}

.auth-row {
  margin-top: 12px;
}

.auth-label {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  padding: 0 12px;
  height: 48px;
}

.auth-input-wrap.with-inline-btn {
  padding-right: 6px;
}

.auth-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #111827;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-inline-btn {
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #e5e7eb;
  color: #2563eb;
  font-weight: 600;
  font-size: 14px;
  padding: 0 12px;
  cursor: pointer;
  flex: 0 0 auto;
}

.auth-eye-btn {
  min-width: 44px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.auth-inline-btn:disabled,
.auth-submit:disabled,
.auth-google:disabled,
.auth-eye-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-submit {
  margin-top: 18px;
  width: 100%;
  border: none;
  border-radius: 999px;
  height: 48px;
  background: linear-gradient(90deg, #1768f4 0%, #1b74f8 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.auth-google {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  height: 44px;
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-google-slot {
  margin-top: 10px;
}

.auth-google-btn-wrap {
  width: 100%;
  min-height: 44px;
}

.auth-google-btn-wrap > div,
.auth-google-btn-wrap iframe {
  width: 100% !important;
}

.auth-links {
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
  color: #4b5563;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 0 4px;
}

.auth-msg {
  margin-top: 10px;
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.auth-msg.is-error {
  color: #dc2626;
}

.auth-msg.is-success {
  color: #16a34a;
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: block;
}

@media (max-width: 520px) {
  .auth-wrap {
    width: min(420px, calc(100vw - 16px));
  }
  .auth-card {
    border-radius: 18px;
    padding: 24px 16px 16px;
  }
  .auth-title {
    font-size: 32px;
  }
  .auth-label {
    font-size: 17px;
  }
}
