.login-page {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.login-visual {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 54% 72%, rgba(176, 58, 52, 0.28), transparent 62%),
    radial-gradient(900px 520px at 22% 10%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(158deg, #892529 0%, #752025 26%, #651418 55%, #550d11 80%, #45080c 100%);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 74px, 74px 100%;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.12), transparent 68%);
  pointer-events: none;
}
.login-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 4vw 0 6.6vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-mark {
  width: 78px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}
.login-goldline {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 164, 92, 0.18));
  margin: 26px 0 30px;
}
.login-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.login-title span {
  font-weight: 400;
  opacity: 0.86;
}
.login-points {
  margin-top: 38px;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 560px;
}
.login-points li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
}
.login-points li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.login-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.12);
}
.login-copyright {
  position: absolute;
  left: 6.6vw;
  bottom: 26px;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.login-panel {
  flex: 0 0 29.2%;
  min-width: 430px;
  max-width: 620px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(30px, 5vw, 96px) 36px;
}
.login-brand {
  width: 246px;
  margin-bottom: 46px;
}
.login-brand img {
  width: 100%;
  display: block;
}
.login-heading {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #171a1f;
}
.login-sub {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.login-divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0 26px;
}
.login-form-title {
  font-size: 17px;
  font-weight: 700;
}
.login-form-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  margin-bottom: 22px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
}
.input {
  width: 100%;
  height: 46px;
  border: 1px solid #e1e3e7;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input::placeholder {
  color: #aab0b8;
}
.input:hover {
  border-color: #cfd3d9;
}
.input:focus {
  border-color: var(--red-400);
  box-shadow: 0 0 0 3px rgba(216, 30, 37, 0.1);
}
.input.has-eye {
  padding-right: 46px;
}
.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #a5abb4;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.eye:hover {
  color: var(--ink-2);
  background: #f5f6f8;
}
.login-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #e02028, #cf1b22);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 7px;
  text-indent: 7px;
  box-shadow: 0 5px 14px rgba(207, 27, 34, 0.24);
  transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
  margin-top: 10px;
}
.login-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 7px 18px rgba(207, 27, 34, 0.3);
}
.login-btn:active {
  transform: translateY(1px);
}
.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  letter-spacing: 2px;
}
.login-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #fdf2f2;
  border: 1px solid #f6d5d5;
  color: #a51c1c;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.login-error.show {
  display: flex;
}
.login-error svg {
  flex: 0 0 auto;
  margin-top: 1px;
}
.login-foot {
  margin-top: 36px;
  font-size: 11px;
  color: #a2a8b0;
  line-height: 1.8;
}
.login-help {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.login-help b {
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .login-panel {
    min-width: 400px;
    flex-basis: 38%;
  }
  .login-visual {
    display: none;
  }
  .login-page {
    justify-content: center;
  }
  .login-panel {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding: 48px max(24px, 8vw);
  }
  .login-brand {
    width: 220px;
  }
}
@media (max-height: 820px) and (min-width: 1181px) {
  .login-panel {
    padding-top: 26px;
    padding-bottom: 18px;
    overflow-y: auto;
  }
  .login-brand {
    width: 208px;
    margin-bottom: 22px;
  }
  .login-heading {
    font-size: 20px;
  }
  .login-sub {
    margin-top: 6px;
  }
  .login-divider {
    margin: 17px 0 15px;
  }
  .login-form-title {
    font-size: 16px;
  }
  .login-form-sub {
    margin-bottom: 13px;
  }
  .field {
    margin-bottom: 12px;
  }
  .field label {
    margin-bottom: 5px;
  }
  .input {
    height: 40px;
  }
  .login-btn {
    height: 42px;
    margin-top: 4px;
  }
  .login-help {
    margin-top: 10px;
  }
  .login-foot {
    margin-top: 16px;
    font-size: 10px;
    line-height: 1.6;
  }
  .login-copyright {
    bottom: 14px;
  }
}
@media (max-width: 480px) {
  .login-panel {
    padding: 40px 24px;
  }
  .login-heading {
    font-size: 21px;
  }
}
