/* ===== 登录/注册页 ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(24px, 5vh, 42px) clamp(18px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.28), rgba(255, 255, 255, 0.42)),
    url("/static/img/login-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #edf5ff 0%, #f7f9fd 42%, #ffffff 100%);
}

.auth-container {
  width: 100%;
  max-width: 430px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 221, 232, 0.9);
  border-radius: 18px;
  padding: 28px 36px 28px;
  box-shadow: 0 16px 42px rgba(34, 64, 110, 0.11);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header .logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  background: #2f83e6;
  box-shadow: 0 10px 22px rgba(47, 131, 230, 0.2);
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #151922;
}

.auth-form .form-group {
  margin-bottom: 12px;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #e7ebf1;
  background: #f4f6fa;
  color: #1b2430;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input::placeholder {
  color: #a8adb5;
}

.auth-form input:focus {
  outline: none;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 111, 255, 0.14);
}

.password-group {
  position: relative;
}

.password-group input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8d929c;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -1px 0 20px;
  color: #636b77;
  font-size: 14px;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.remember-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  accent-color: #0b73ff;
}

.auth-note {
  color: #8b93a0;
}

.auth-note-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-note-btn:hover {
  color: #5f6875;
}

.https-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  color: #8b93a0;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.https-switch {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
}

.https-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.https-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d6dce6;
  box-shadow: inset 0 1px 2px rgba(20, 31, 48, 0.14);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.https-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 31, 48, 0.2);
  transition: transform 0.18s ease;
}

.https-switch input:checked + .https-switch-track {
  background: #0874ff;
  box-shadow: 0 5px 12px rgba(8, 116, 255, 0.18);
}

.https-switch input:checked + .https-switch-track .https-switch-thumb {
  transform: translateX(20px);
}

.https-switch input:focus-visible + .https-switch-track {
  outline: 3px solid rgba(8, 116, 255, 0.22);
  outline-offset: 3px;
}

.btn-primary {
  min-height: 50px;
  background: #2f83e6;
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 10px 24px rgba(47, 131, 230, 0.24);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #2377d8;
}

.btn-primary:active {
  transform: scale(0.98);
}

.status {
  font-size: 12px;
  margin: 0 0 10px;
  min-height: 16px;
  color: #5d6672;
}

.status.ok {
  color: var(--accent-blue);
}

.status.err {
  color: #d94b4b;
}

@media (max-width: 560px) {
  .auth-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .auth-card {
    border-radius: 18px;
    padding: 28px 22px;
  }

  .auth-options {
    align-items: center;
    flex-direction: row;
  }
}
