:root {
  color-scheme: light;
  --canvas: #f4f6f3;
  --panel: rgba(255, 255, 255, .9);
  --ink: #1e2722;
  --muted: #748079;
  --border: #dfe6df;
  --yellow: #ffc526;
  --yellow-deep: #bf8d00;
  --yellow-soft: #fff6d6;
  --green: #32815b;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell { position: relative; display: grid; grid-template-columns: minmax(320px, 470px) minmax(280px, 1fr); gap: clamp(32px, 8vw, 120px); align-items: center; width: min(1120px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding: 52px 0; }
.login-shell::before { position: fixed; z-index: -1; top: -190px; right: -170px; width: 570px; height: 570px; border: 1px solid rgba(191, 141, 0, .18); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 197, 38, .04), 0 0 0 58px rgba(255, 197, 38, .025); content: ""; }
.login-card { padding: clamp(31px, 5vw, 54px); border: 1px solid rgba(212, 221, 213, .92); border-radius: 22px; background: var(--panel); box-shadow: 0 24px 70px rgba(35, 47, 39, .1); backdrop-filter: blur(18px); }
.login-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--muted); text-decoration: none; }
.login-brand img { display: block; width: min(218px, 68vw); height: auto; }
.login-brand span { padding-left: 3px; color: #829087; font-size: 11px; letter-spacing: .12em; }
.login-heading { margin: 51px 0 28px; }
.eyebrow, .aside-kicker { margin: 0 0 10px; color: var(--yellow-deep); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.login-heading h1 { margin: 0 0 9px; color: #18211c; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.1; }
.login-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field label { color: #46544b; font-size: 12px; font-weight: 700; }
.field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); outline: 0; background: rgba(255, 255, 255, .9); font-size: 13px; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.field input::placeholder { color: #a0aba4; }
.field input:hover { border-color: #c6d1c8; }
.field input:focus { border-color: var(--yellow-deep); box-shadow: 0 0 0 4px rgba(255, 197, 38, .18); background: #fff; }
.field input:disabled { cursor: wait; opacity: .65; }
.login-error { margin: -4px 0 0; padding: 10px 12px; border: 1px solid #f1c7c2; border-radius: 9px; color: #a8443c; background: #fff3f1; font-size: 12px; line-height: 1.5; }
.login-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 3px; border: 0; border-radius: 10px; color: #201b0d; background: var(--yellow); box-shadow: 0 8px 18px rgba(191, 141, 0, .17); font-size: 13px; font-weight: 800; transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease; }
.login-submit:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 11px 24px rgba(191, 141, 0, .22); }
.login-submit:focus-visible { outline: 3px solid rgba(191, 141, 0, .32); outline-offset: 3px; }
.login-submit:disabled { cursor: wait; opacity: .8; }
.submit-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(32, 27, 13, .25); border-top-color: #201b0d; border-radius: 50%; animation: spin .7s linear infinite; }
.login-submit.is-loading .submit-spinner { display: block; }
.login-submit.is-loading .submit-label { opacity: .75; }
.login-footer { margin: 30px 0 0; color: #a1aba4; font-size: 10px; letter-spacing: .1em; }
.login-aside { position: relative; min-height: 360px; padding: 38px 0 28px; }
.aside-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #241f0e; background: var(--yellow); box-shadow: 0 10px 22px rgba(191, 141, 0, .18); font-size: 20px; font-weight: 800; }
.login-aside .aside-kicker { margin-top: 43px; }
.login-aside h2 { margin: 0; color: #202a24; font-size: clamp(29px, 4vw, 53px); letter-spacing: -.065em; line-height: 1.14; }
.aside-copy { max-width: 380px; margin: 20px 0 0; color: #718078; font-size: 14px; line-height: 1.8; }
.aside-bee { position: absolute; right: 5%; bottom: 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 130px; height: 86px; opacity: .75; transform: rotate(-12deg); }
.aside-bee span { border: 2px solid rgba(191, 141, 0, .34); border-radius: 14px; background: rgba(255, 197, 38, .2); }
.aside-bee span:nth-child(2) { transform: translateY(-17px); background: rgba(255, 197, 38, .4); }
.aside-bee span:nth-child(3) { transform: translateY(10px); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .login-shell { display: block; width: min(100% - 28px, 510px); padding: 24px 0; }
  .login-card { padding: 29px 24px 25px; }
  .login-heading { margin-top: 39px; }
  .login-aside { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
