:root {
  --ink: #1b1a17;
  --ink-2: #5c5951;
  --ink-3: #8a867c;
  --paper: #fbfaf7;
  --sand: #f1eee7;
  --line: #e5e1d7;
  --accent: #8a4b32;
  --danger: #a33b2f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #f7f6f2;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, p { margin: 0; }

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.skip:focus { top: 12px; }

.login-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand-lockup img {
  display: block;
  width: 42px;
  height: 39px;
  object-fit: contain;
}
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-copy strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-copy small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
}

.login-back {
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 10px 0;
}
.login-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-panel {
  width: min(1000px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgb(27 26 23 / 10%);
}

.login-visual {
  position: relative;
  padding: 40px 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.login-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -170px;
  bottom: -190px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: 0 0 0 42px rgb(255 255 255 / 3%), 0 0 0 84px rgb(255 255 255 / 2%);
  pointer-events: none;
}
.login-visual > img {
  width: 92px;
  height: 86px;
  object-fit: contain;
  filter: brightness(1.18);
}
.login-visual-kicker {
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 58%);
}
.login-visual-title {
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.login-visual-title em {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
}
.login-visual-copy {
  max-width: 34ch;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgb(255 255 255 / 66%);
}
.login-visual-foot {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 46%);
}

.login-form-side {
  padding: 52px 54px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-kicker {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.login-form-side h1 {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.login-intro {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.login-alert {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #eccbc4;
  background: #fdf2ef;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.login-alert.is-info {
  border-color: #d6e4d4;
  background: #f1f7ef;
  color: #38603a;
}

.login-form { margin-top: 24px; }
.login-field {
  display: block;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.login-field input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #d8d3c7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(27 26 23 / 8%);
}
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 62px; }
.password-toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.password-toggle:hover { background: var(--sand); color: var(--ink); }

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  transition: background 0.15s ease, transform 0.15s ease;
}
.login-submit:hover { background: #000; }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: 0.6; cursor: default; }

.login-help {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.login-help-muted { margin-top: 6px; color: var(--ink-3); }

.login-footer {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10.5px;
  color: var(--ink-3);
}

@media (max-width: 820px) {
  .login-panel { grid-template-columns: 1fr; min-height: 0; }
  .login-visual { padding: 28px 28px 26px; min-height: 220px; }
  .login-visual > img { width: 58px; height: 54px; }
  .login-visual-title { font-size: 38px; }
  .login-visual-copy { max-width: 46ch; margin-top: 12px; }
  .login-visual-foot { display: none; }
  .login-form-side { padding: 34px 28px 32px; }
}

@media (max-width: 520px) {
  .login-header { padding: 14px 16px; }
  .brand-lockup img { width: 36px; height: 33px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 7px; letter-spacing: 0.12em; }
  .login-back { font-size: 11.5px; }
  .login-main { padding: 14px; }
  .login-panel { border-radius: 18px; }
  .login-visual { padding: 22px; min-height: 180px; }
  .login-visual-title { font-size: 32px; }
  .login-visual-copy { font-size: 12.5px; }
  .login-form-side { padding: 26px 20px 26px; }
  .login-footer { flex-direction: column; gap: 4px; padding: 16px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
