:root {
  --reya-bg: #f5f7fb;
  --reya-card: #ffffff;
  --reya-line: #e5e8ef;
  --reya-text: #1d2533;
  --reya-muted: #667085;
  --reya-green: #00b96b;
  --reya-green-dark: #00a461;
  --reya-blue: #2f80ed;
}

html,
body,
#app {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--reya-bg);
  color: var(--reya-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 78%, rgba(47, 128, 237, 0.13), transparent 20%),
    radial-gradient(circle at 78% 24%, rgba(0, 185, 107, 0.14), transparent 18%),
    linear-gradient(145deg, #f8fbff 0%, #eef7ff 48%, #f6fff8 100%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.62) 62% 100%),
    linear-gradient(245deg, transparent 0 58%, rgba(226, 239, 247, 0.5) 58% 100%);
  opacity: 0.8;
  pointer-events: none;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 360px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.login-product {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #202934;
}

.login-product strong {
  font-weight: 800;
  line-height: 1.2;
}

.login-panel .arco-form-item {
  margin-bottom: 12px;
}

.login-panel .arco-form-item-content {
  width: 100%;
}

.login-panel .arco-input-wrapper {
  height: 38px;
  border: 1px solid rgba(134, 148, 166, 0.36);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.login-panel .arco-input-wrapper:hover,
.login-panel .arco-input-wrapper.arco-input-focus {
  border-color: rgba(0, 185, 107, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 185, 107, 0.1);
}

.login-panel .arco-input,
.login-panel .arco-input-password {
  font-size: 14px;
}

.login-panel .arco-input::placeholder,
.login-panel .arco-input-password input::placeholder {
  color: #98a2b3;
}

.login-panel .arco-input-prefix svg {
  font-size: 16px;
  color: #66748a;
}

.captcha-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
}

.captcha-code {
  height: 38px;
  border: 0;
  border-radius: 4px;
  background:
    repeating-linear-gradient(12deg, rgba(0, 185, 107, 0.15) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(106deg, rgba(28, 91, 255, 0.18) 0 2px, transparent 2px 13px),
    #fbfdff;
  color: #152033;
  cursor: pointer;
  font-size: 23px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(134, 148, 166, 0.2);
}

.captcha-code:hover,
.captcha-code:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 185, 107, 0.58), 0 0 0 3px rgba(0, 185, 107, 0.1);
}

.captcha-code span {
  display: inline-block;
  margin: 0 3px;
}

.captcha-code span:nth-child(2n) {
  color: var(--reya-green);
}

.login-submit,
.login-submit.arco-btn-primary {
  margin-top: 6px;
  height: 40px;
  border-radius: 5px;
  font-size: 15px;
  background: var(--reya-green);
  border-color: var(--reya-green);
  box-shadow: 0 10px 24px rgba(0, 185, 107, 0.26);
}

.login-submit:hover,
.login-submit:focus,
.login-submit.arco-btn-primary:hover,
.login-submit.arco-btn-primary:focus {
  background: var(--reya-green-dark);
  border-color: var(--reya-green-dark);
}

.login-footnote {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  color: #667085;
  font-size: 11px;
}

.login-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-footnote svg {
  color: var(--reya-green);
}

.login-bg-shape {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 70px rgba(54, 80, 111, 0.08);
}

.login-bg-square {
  width: 210px;
  height: 210px;
  top: 16%;
  left: 22.5%;
}

.login-bg-circle-left {
  width: 520px;
  height: 520px;
  left: -115px;
  bottom: -170px;
  border-radius: 50%;
}

.login-bg-circle-right {
  width: 310px;
  height: 310px;
  right: 12.5%;
  bottom: -42px;
  border-radius: 50%;
}

.login-bg-diamond {
  width: 300px;
  height: 300px;
  right: -74px;
  top: 30%;
  transform: rotate(45deg);
  border-radius: 42px;
}

.admin-layout {
  min-height: 100vh;
}

.admin-sider {
  border-right: 1px solid var(--reya-line);
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.03);
}

.brand {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--reya-line);
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand span {
  color: var(--reya-muted);
  font-size: 12px;
}

.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--reya-line);
  backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-title {
  font-weight: 700;
  font-size: 18px;
}

.page-subtitle {
  color: var(--reya-muted);
  font-size: 12px;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-content {
  padding: 18px 22px 32px;
  background: var(--reya-bg);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--reya-line);
  margin-top: 18px;
}

.metric-item {
  min-height: 92px;
  padding: 16px 18px;
  border-right: 1px solid var(--reya-line);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-label {
  color: var(--reya-muted);
}

.metric-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action {
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--reya-line);
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
}

.quick-action:hover {
  color: rgb(var(--primary-6));
  border-color: rgb(var(--primary-5));
  background: rgb(var(--primary-1));
}

.section {
  margin-top: 16px;
}

.compact-card {
  border-radius: 4px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.muted {
  color: var(--reya-muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--reya-green);
}

.chart-placeholder {
  height: 260px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 8px 8px;
  border: 1px solid var(--reya-line);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.bar {
  flex: 1;
  min-width: 18px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2f80ed, #22c55e);
  opacity: 0.85;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.setting-form {
  max-width: 780px;
}

.danger-text {
  color: rgb(var(--danger-6));
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 1180px) {
  .page-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 28px 18px;
  }

  .login-page::before,
  .login-bg-shape {
    opacity: 0.45;
  }

  .login-panel {
    width: 100%;
  }

  .login-product {
    margin-bottom: 18px;
    font-size: 20px;
  }

  .captcha-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .captcha-code {
    width: 100%;
  }

  .login-footnote {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}
