:root {
  --auth-bg: #f6f1e8;
  --auth-surface: #fffaf5;
  --auth-surface-soft: #f8f1e7;
  --auth-border: rgba(151, 129, 99, 0.16);
  --auth-ink: #3a2f23;
  --auth-ink-strong: #34281d;
  --auth-muted: #7b6854;
  --auth-primary: #b88a52;
  --auth-primary-strong: #a87742;
  --auth-accent: #c96e63;
  --auth-warm: #c49047;
  --auth-shadow: 0 24px 60px rgba(73, 53, 31, 0.14);
}

html,
body {
  min-height: 100%;
}

body.modern-auth-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--auth-bg);
  background-image:
    linear-gradient(135deg, rgba(184, 138, 82, 0.12) 0, transparent 34%),
    linear-gradient(315deg, rgba(201, 110, 99, 0.07) 0, transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, var(--auth-bg) 58%, #efe7db 100%);
  color: var(--auth-ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.modern-auth-page .limiter {
  min-height: 100dvh;
  padding: 0;
  background: transparent;
}

.modern-auth-page .container-login100 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  background: transparent;
}

.modern-auth-page .wrap-login100 {
  width: 100%;
  max-width: 1600px;
  display: block;
  padding: 12px;
  border: 1px solid rgba(151, 129, 99, 0.2);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.modern-auth-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 129, 99, 0.12);
  border-radius: 20px;
  background: var(--auth-surface);
}

.modern-auth-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  padding: 38px;
  color: #fffaf0;
  background-color: #765332;
  background-image:
    linear-gradient(150deg, rgba(67, 46, 28, 0.92) 0%, rgba(122, 84, 46, 0.84) 54%, rgba(55, 40, 26, 0.72) 100%),
    url("/static/login/images/bg.jpg");
  background-position: center;
  background-size: cover;
}

.modern-auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(196, 144, 71, 0.22) 62% 62.5%, transparent 62.5%),
    linear-gradient(180deg, transparent 0 76%, rgba(201, 110, 99, 0.22) 76% 100%);
}

.modern-auth-side::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 28px;
  z-index: 0;
  height: 1px;
  background: rgba(255, 250, 240, 0.25);
}

.modern-auth-side > * {
  position: relative;
  z-index: 1;
}

.modern-auth-side__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  gap: 28px;
}

.modern-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.modern-auth-brand img {
  display: block;
  width: 176px;
  max-width: 62%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.modern-auth-brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 250, 240, 0.32);
  color: rgba(255, 250, 240, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.modern-auth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.1);
  color: #f1d18e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.modern-auth-side h1 {
  max-width: 470px;
  margin: 0;
  color: #fffaf0;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.modern-auth-side h1 strong {
  color: #f1c978;
  font-weight: 800;
}

.modern-auth-side p {
  max-width: 420px;
  margin: 16px 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.modern-auth-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.modern-auth-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 13px;
  line-height: 1.6;
}

.modern-auth-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-warm);
  box-shadow: 0 0 0 4px rgba(196, 144, 71, 0.14);
}

.modern-auth-side__note {
  max-width: 330px;
  padding-top: 20px;
  color: rgba(255, 250, 240, 0.66);
  font-size: 12px;
  line-height: 1.8;
}

.modern-auth-form {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 52px 54px;
  background: var(--auth-surface);
}

.modern-auth-form .login100-form,
.modern-auth-form form {
  width: 100%;
  max-width: 470px;
  margin: 0;
}

.modern-auth-form .login100-form-title {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 0;
  color: var(--auth-ink-strong);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

.modern-auth-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--auth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.modern-auth-caption {
  margin-bottom: 26px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.75;
}

.modern-auth-page .wrap-input100 {
  position: relative;
  min-height: 62px;
  margin-bottom: 14px;
  border: 1px solid rgba(151, 129, 99, 0.2);
  border-radius: 12px;
  background: var(--auth-surface-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.modern-auth-page .wrap-input100:focus-within {
  border-color: rgba(184, 138, 82, 0.72);
  background: #fffefa;
  box-shadow: 0 0 0 4px rgba(184, 138, 82, 0.12);
  transform: translateY(-1px);
}

.modern-auth-page .input100 {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 104px;
  background: transparent;
  color: var(--auth-ink-strong);
  font-size: 15px;
}

.modern-auth-page .input100::placeholder {
  color: #a49684;
}

.modern-auth-page .symbol-input100 {
  display: inline-flex;
  align-items: center;
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 18px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  transform: translateY(-50%);
  color: var(--auth-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.modern-auth-page .focus-input100,
.modern-auth-page .login100-pic,
.modern-auth-page .js-tilt,
.modern-auth-page .login100-pic img {
  display: none !important;
}

.modern-auth-page .form-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 0 18px !important;
  padding: 0;
}

.modern-auth-page .form-check-input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--auth-primary);
}

.modern-auth-page .form-check-label {
  margin: 0 !important;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.4;
}

.modern-auth-page .container-login100-form-btn,
.modern-auth-page .text-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-top: 0;
}

.modern-auth-page .container-login100-form-btn {
  margin-top: 8px;
  margin-bottom: 14px;
}

.modern-auth-page .text-center {
  margin-top: 16px;
}

.modern-auth-page .login100-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-strong));
  color: #fffaf0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 22px rgba(184, 138, 82, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.modern-auth-page .login100-form-btn .fa {
  flex: 0 0 auto;
  margin-right: 8px;
  font-size: 13px;
}

.modern-auth-page .login100-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(184, 138, 82, 0.25);
}

.modern-auth-page .login100-form-btn:active {
  transform: translateY(0) scale(0.985);
}

.modern-auth-page .login100-form-btn:focus-visible {
  outline: 3px solid rgba(184, 138, 82, 0.3);
  outline-offset: 3px;
}

.modern-auth-page .login100-form-btn.secondary {
  border-color: rgba(196, 144, 71, 0.28);
  background: #fff4d9;
  color: #865c20;
  box-shadow: none;
}

.modern-auth-page .login100-form-btn.secondary:hover {
  border-color: rgba(196, 144, 71, 0.5);
  background: #ffefc4;
  box-shadow: 0 10px 20px rgba(196, 144, 71, 0.14);
}

.modern-auth-page .login100-form-btn.ghost {
  border-color: rgba(201, 110, 99, 0.32);
  background: transparent;
  color: var(--auth-accent);
  box-shadow: none;
}

.modern-auth-page .login100-form-btn.ghost:hover {
  border-color: rgba(201, 110, 99, 0.56);
  background: rgba(201, 110, 99, 0.06);
  box-shadow: 0 10px 20px rgba(201, 110, 99, 0.1);
}

.modern-auth-links,
.modern-auth-home-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

body.modern-auth-page-home .wrap-login100 {
  max-width: 1680px;
}

body.modern-auth-page-home .modern-auth-panel {
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
}

body.modern-auth-page-home .modern-auth-form {
  align-items: stretch;
}

body.modern-auth-page-home .modern-auth-home-shell {
  display: grid;
  align-content: center;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

body.modern-auth-page-home .modern-auth-home-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modern-auth-footer {
  margin-top: 18px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (min-width: 1280px) {
  .modern-auth-side,
  .modern-auth-form {
    padding: 54px 58px;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .modern-auth-page .container-login100 {
    padding: 20px;
  }

  .modern-auth-side,
  .modern-auth-form {
    padding: 42px 38px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .modern-auth-page .container-login100 {
    align-items: flex-start;
    padding: 14px;
  }

  .modern-auth-page .wrap-login100 {
    width: 100%;
    margin: auto;
    padding: 9px;
  }

  .modern-auth-panel,
  body.modern-auth-page-home .modern-auth-panel {
    grid-template-columns: 1fr;
  }

  .modern-auth-side,
  .modern-auth-form {
    width: 100%;
    padding: 34px 32px;
  }

  .modern-auth-side {
    min-height: 300px;
  }

  .modern-auth-side::after {
    left: 32px;
    right: 32px;
    bottom: 24px;
  }

  .modern-auth-form .login100-form,
  .modern-auth-form form {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  .modern-auth-page .container-login100 {
    padding: 4px;
  }

  .modern-auth-page .wrap-login100 {
    padding: 4px;
    border-radius: 20px;
  }

  .modern-auth-panel,
  body.modern-auth-page-home .modern-auth-panel {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .modern-auth-side,
  .modern-auth-form {
    padding: 24px 18px;
  }

  .modern-auth-side {
    min-height: 220px;
    background-position: center 28%;
  }

  .modern-auth-side::after {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .modern-auth-brand img {
    flex: 0 0 auto;
    width: 132px;
    max-width: 55%;
    max-height: 64px;
    object-fit: contain;
  }

  .modern-auth-brand span {
    font-size: 11px;
  }

  .modern-auth-side h1 {
    margin-top: 22px;
    font-size: 29px;
  }

  .modern-auth-side p {
    margin-top: 12px;
    font-size: 13px;
  }

  .modern-auth-list {
    gap: 7px;
    margin-top: 16px;
  }

  .modern-auth-list li {
    font-size: 12px;
  }

  .modern-auth-side__note {
    display: none;
  }

  .modern-auth-form .login100-form-title {
    font-size: 25px;
  }

  body.modern-auth-page-home .modern-auth-home-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modern-auth-page .wrap-input100,
  .modern-auth-page .login100-form-btn {
    transition: none;
  }

  .modern-auth-page .login100-form-btn:hover,
  .modern-auth-page .wrap-input100:focus-within {
    transform: none;
  }
}
