:root {
  color: #24211e;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: #fffaf3 url("/static/images/login_bg.png") center / cover no-repeat;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px clamp(56px, 8vw, 150px) 48px 55vw;
}

.login-card {
  width: min(500px, 100%);
  padding: 42px 44px 46px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 184, 62, 0.14);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(122, 72, 11, 0.1),
    0 4px 16px rgba(255, 147, 0, 0.06);
  backdrop-filter: blur(12px);
}

.login-card__header {
  margin-bottom: 30px;
  text-align: left;
}

.login-card__header h1 {
  margin: 0;
  color: #1d1b19;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 1px;
}

.login-card__header h1::after {
  width: 38px;
  height: 4px;
  display: block;
  margin-top: 12px;
  background: linear-gradient(90deg, #ffbd22, #ff6b00);
  border-radius: 999px;
  content: "";
}

.login-card__header p {
  margin: 14px 0 0;
  color: #a39c94;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
}

.form-fields {
  display: grid;
  gap: 15px;
}

.field {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e9e4de;
  border-radius: 10px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.field:focus-within {
  background: #fff;
  border-color: #ff9c16;
  box-shadow: 0 0 0 3px rgba(255, 156, 22, 0.12);
}

.field__icon {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.52;
}

.field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #312d29;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.field input::placeholder {
  color: #b6afa8;
}

/* 覆盖浏览器自动填充账号、密码时附加的默认底色。 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: #312d29;
  -webkit-background-clip: text;
  caret-color: #312d29;
  box-shadow: inset 0 0 0 1000px transparent;
  transition: background-color 9999s ease-out 0s;
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px;
  gap: 10px;
}

.field--verify {
  min-width: 0;
}

.verify-button {
  height: 54px;
  padding: 0 8px;
  color: #736b63;
  background: #fffaf4;
  border: 1px solid #f0dfca;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.verify-button:hover {
  color: #f27300;
  background: #fff4e6;
  border-color: #ffc474;
}

.verify-button:active {
  transform: translateY(1px);
}

.submit-button.layui-btn {
  width: 100%;
  height: 54px;
  margin-top: 28px;
  padding: 0;
  color: #fff;
  background: linear-gradient(90deg, #ffbd22 0%, #ff870d 52%, #ff6500 100%);
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 54px;
  box-shadow: 0 10px 24px rgba(255, 121, 0, 0.2);
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    filter 0.2s;
}

.submit-button.layui-btn:hover {
  color: #fff;
  filter: brightness(1.03);
  box-shadow: 0 13px 28px rgba(255, 121, 0, 0.26);
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .login-page {
    padding: 36px 5vw 36px 52vw;
  }
}

@media (max-width: 860px) {
  body {
    background-position: 30% center;
  }

  .login-page {
    justify-content: center;
    padding: 24px;
    background: rgba(255, 250, 243, 0.6);
  }

  .login-card {
    width: min(500px, 100%);
    padding: 36px 30px 40px;
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 520px) {
  .login-page {
    padding: 14px;
  }

  .login-card {
    padding: 30px 20px 32px;
    border-radius: 18px;
  }

  .login-card__header h1 {
    font-size: 28px;
  }

  .verify-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .field--verify {
    grid-column: 1 / -1;
  }
}
