@charset "UTF-8";

:root {
  --auth-green: #67c23a;
  --auth-green-active: #5caf32;
  --auth-blue: #0c9cf5;
  --auth-ink: #303133;
  --auth-text: #606266;
  --auth-muted: #909399;
  --auth-line: #e6e6e6;
  --auth-red: #c82f23;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #ffffff;
}

body {
  max-width: 540px;
  margin: 0 auto;
  color: var(--auth-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #000000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f2f2f2;
}

.auth-topbar-title {
  font-size: 16px;
  font-weight: 500;
}

.auth-back {
  position: absolute;
  left: 4px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 28px;
  font-weight: 300;
}

.auth-main {
  padding: 16px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.auth-title {
  display: flex;
  height: 15vh;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.auth-desc {
  margin: 0 0 22px;
  color: var(--auth-text);
  font-size: 19px;
  line-height: 1.55;
}

.auth-card {
  padding: 11px 22px 33px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 4px hsla(0, 0%, 71%, 0.5);
}

.auth-field {
  display: block;
  padding: 20px 0 13px;
  border-bottom: 0.5px solid var(--auth-line);
}

.auth-field:first-child {
  padding-top: 18px;
}

.auth-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 13px;
  line-height: 1.3;
}

.auth-field input {
  width: 100%;
  min-height: 34px;
  padding: 3px 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  color: var(--auth-ink);
  background: transparent !important;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: none !important;
  appearance: none;
}

.auth-field input::placeholder {
  color: #c0c4cc;
}

.auth-field input:focus {
  color: var(--auth-ink);
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 27px;
  padding: 11px 18px;
  border: 0;
  border-radius: 44px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.auth-submit:active {
  transform: scale(0.985);
  filter: brightness(0.94);
}

.auth-submit-green {
  background: var(--auth-green);
  box-shadow: 0 7px 18px rgba(103, 194, 58, 0.2);
}

.auth-submit-blue {
  margin-top: 22px;
  background: var(--auth-blue);
  box-shadow: 0 7px 18px rgba(12, 156, 245, 0.18);
}

.auth-register-page .auth-title {
  height: auto;
  min-height: 70px;
  margin-top: 12px;
  font-size: 25px;
}

.auth-register-page .auth-desc {
  margin-bottom: 16px;
  font-size: 16px;
}

.auth-register-page .auth-card {
  padding-top: 8px;
}

.auth-rules {
  margin-top: 13px;
  padding: 12px 14px;
  color: var(--auth-text);
  border-radius: 7px;
  background: #f7f8fa;
  font-size: 12px;
  line-height: 1.7;
}

.auth-rules strong {
  display: block;
  margin-bottom: 5px;
  color: var(--auth-ink);
  font-size: 13px;
}

.auth-rules p {
  margin: 4px 0;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: var(--auth-text);
  font-size: 13px;
  line-height: 1.6;
}

.auth-check input {
  width: 16px !important;
  height: 16px !important;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--auth-red);
}

@media (max-height: 680px) {
  .auth-title {
    height: 84px;
    min-height: 84px;
  }

  .auth-login-page .auth-main {
    padding-top: 24px;
  }
}
