@charset "utf-8";

:root {
  --shop-primary: #2563eb;
  --shop-primary-deep: #1e40af;
  --shop-primary-soft: #dbeafe;
  --shop-text: #111827;
  --shop-muted: #6b7280;
  --shop-border: #dfe3ea;
}

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

body {
  color: var(--shop-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #ffffff;
  overflow: hidden;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
}

.brand-panel {
  position: relative;
  width: 60%;
  min-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.20), transparent 26%),
    linear-gradient(145deg, #4f46e5 0%, #2563eb 58%, #1d4ed8 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 260px;
  border-radius: 44px;
  transform: rotate(-10deg);
  background: rgba(255, 255, 255, 0.14);
}

.brand-inner {
  position: relative;
  z-index: 1;
  width: min(520px, 70%);
}

.brand-inner h1 {
  margin: 0 0 24px;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  width: 460px;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.90);
}

.brand-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.brand-points span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.login-panel {
  flex: 1;
  min-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.main {
  width: 448px;
  margin: 0;
  padding: 0;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.main .title {
  height: auto;
  line-height: 1;
  margin: 0 0 34px;
  color: var(--shop-text);
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  border-bottom: 0;
}

.main .cont {
  width: 100%;
  padding: 0;
}

.main .end {
  height: auto;
  line-height: 1.6;
  margin-top: 22px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

.main .layui-form-item {
  margin-bottom: 24px;
}

.layui-form-label {
  float: none;
  display: block;
  width: auto;
  padding: 0 0 8px;
  color: #374151;
  text-align: left;
  font-weight: 700;
}

.layui-input-block {
  margin-left: 0;
}

.layui-input,
input.layui-input,
input[type="text"],
input[type="password"] {
  background: #ffffff;
  border: 1px solid var(--shop-border);
  color: var(--shop-text);
  border-radius: 0;
  height: 40px;
  line-height: 40px;
  padding: 0 12px;
  transition: all 0.25s ease;
}

.layui-input-inline {
  display: block;
  width: auto;
}

.layui-input::placeholder,
input.layui-input::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #a7adb8;
}

.layui-input:focus,
input.layui-input:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.captcha-row {
  display: grid;
  grid-template-columns: 170px 150px;
  gap: 12px;
  align-items: center;
}

#verify {
  width: 100%;
  height: 42px;
  border: 1px solid var(--shop-border);
  cursor: pointer;
  object-fit: cover;
}

.login-actions {
  margin-top: 10px;
}

#btn.layui-btn {
  width: 100%;
  height: 52px;
  line-height: 52px;
  margin-top: 0;
  background: linear-gradient(100deg, #4f46e5 0%, var(--shop-primary) 100%);
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
  transition: all 0.2s ease;
}

#btn.layui-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.30);
  transform: translateY(-2px);
}

#btn.layui-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}

@media (max-width: 960px) {
  body {
    overflow: auto;
  }

  .auth-layout {
    display: block;
  }

  .brand-panel {
    width: 100%;
    min-width: 0;
    min-height: 38vh;
    justify-content: flex-start;
  }

  .brand-inner {
    width: auto;
    padding: 48px 28px;
  }

  .brand-inner h1 {
    font-size: 36px;
  }

  .login-panel {
    min-width: 0;
    padding: 44px 24px;
  }

  .main {
    width: 100%;
    max-width: 448px;
  }

  .captcha-row {
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 150px);
  }
}
