:root {
  --bg: #edf2f9;
  --card: rgba(255, 255, 255, 0.92);
  --ink: #172033;
  --muted: #697790;
  --line: rgba(210, 220, 236, 0.8);
  --primary: #2367ff;
  --primary-strong: #114ed1;
  --success: #15a46f;
  --danger: #dc425f;
  --shadow: 0 28px 70px rgba(17, 34, 68, 0.16);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(35, 103, 255, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(21, 164, 111, 0.16), transparent 24%),
    linear-gradient(135deg, #eef4ff 0%, #f7f9fd 48%, #eef3fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 72px;
}
.shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 420px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 0;
  color: #fff;
  background: #fff url('/admin/assets/vending-machine-clean-v20261021.webp') center / cover
    no-repeat;
}
.hero::before,
.hero::after {
  content: none;
}
.hero::before {
  display: none;
}
.hero::after {
  content: none;
  display: none;
}
.hero h1,
.hero p,
.hero-grid {
  display: none;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
}
.hero p {
  margin: 0 0 34px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 14px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hero-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}
.hero-card span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.7;
}
.form-panel {
  padding: 46px 42px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #39a8ff 100%);
  box-shadow: 0 16px 30px rgba(35, 103, 255, 0.28);
}
.brand-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}
.brand-text span {
  color: var(--muted);
  font-size: 13px;
}
h2 {
  margin: 0 0 28px;
  font-size: 28px;
}
.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #354154;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px;
  font-size: 15px;
  background: #f8fbff;
  outline: none;
  transition: 0.2s ease;
}
.field input:focus {
  border-color: rgba(35, 103, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(35, 103, 255, 0.12);
}
.hint-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 13px;
}
.submit-btn {
  width: 100%;
  border: none;
  border-radius: 15px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 28px rgba(35, 103, 255, 0.26);
}
.submit-btn:disabled {
  opacity: 0.76;
  cursor: wait;
}
.message {
  min-height: 22px;
  margin-top: 16px;
  font-size: 13px;
}
.message.error {
  color: var(--danger);
}
.message.success {
  color: var(--success);
}
.icp-footer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  width: max-content;
  max-width: calc(100% - 28px);
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 34, 68, 0.08);
  backdrop-filter: blur(10px);
  z-index: 20;
}
@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
    max-width: 580px;
  }
  .hero {
    display: none;
  }
  .form-panel {
    padding: 34px 24px;
  }
}
@media (max-width: 640px) {
  body {
    padding: 14px;
  }
  .shell {
    border-radius: 24px;
  }
  .form-panel {
    padding: 28px 18px;
  }
}
