﻿:root {
  --ink: #1f2a24;
  --muted: #66746b;
  --paper: #fffaf0;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(31, 42, 36, 0.12);
  --green: #2f6f4e;
  --green-2: #173d2c;
  --gold: #d9a441;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(22, 48, 34, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(217, 164, 65, 0.22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(47, 111, 78, 0.18), transparent 32%),
    linear-gradient(135deg, #f6efe0 0%, #ecf2e9 52%, #f9f4e8 100%);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 48px 0;
}

.brand-panel,
.login-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  min-height: 560px;
  border-radius: 34px;
  padding: 48px;
  background:
    linear-gradient(150deg, rgba(23, 61, 44, 0.94), rgba(47, 111, 78, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 18px);
  color: #fffaf0;
  position: relative;
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  border: 58px solid rgba(217, 164, 65, 0.22);
}

.brand-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--green-2);
  background: linear-gradient(135deg, #ffe6a6, #d9a441);
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.eyebrow {
  margin: 58px 0 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
  font-weight: 800;
}

h1, h2, p { margin: 0; }

h1 {
  max-width: 520px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 520px;
  margin-top: 24px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.flow-card {
  width: min(460px, 100%);
  margin-top: 54px;
  display: grid;
  gap: 12px;
}

.flow-card span {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 250, 240, 0.14);
}

.login-panel { display: flex; justify-content: center; }

.login-card {
  width: min(440px, 100%);
  border-radius: 30px;
  padding: 36px;
  background: var(--card);
}

.login-kicker {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h2 {
  margin-top: 10px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.hint {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

form { margin-top: 28px; }

label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: #fffdf7;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(47, 111, 78, 0.68);
  box-shadow: 0 0 0 5px rgba(47, 111, 78, 0.12);
}

button {
  width: 100%;
  height: 58px;
  margin-top: 18px;
  border: 0;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(23, 61, 44, 0.22);
}

button:disabled { cursor: not-allowed; opacity: 0.72; }
.button-loading, .is-loading .btn-text { display: none; }
.is-loading .btn-loading { display: inline; }
.btn-loading { display: none; }

.status {
  min-height: 44px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}

.status.show { display: block; }
.status.ok { color: #165b35; background: rgba(47, 111, 78, 0.12); }
.status.err { color: var(--danger); background: rgba(180, 35, 24, 0.1); }

.help-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(217, 164, 65, 0.1);
  color: var(--muted);
}

.help-box summary {
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.help-box p {
  margin-top: 10px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 520px);
    padding: 20px 0;
  }
  .brand-panel { min-height: auto; padding: 32px; }
  .eyebrow { margin-top: 34px; }
  .flow-card { margin-top: 32px; }
  .login-card { padding: 28px; }
}
