:root {
  color-scheme: light;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --ink: #17221f;
  --muted: #697670;
  --green: #1e4744;
  --green-deep: #153a37;
  --lime: #d4e65a;
  --line: #dfe6e2;
  --paper: #f1f3f0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }

.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    radial-gradient(circle at 12% 12%, #bbb2d03d 0, transparent 31%),
    radial-gradient(circle at 91% 86%, #c6887833 0, transparent 29%),
    #eef1ed;
}

.login-shell {
  width: min(1060px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  overflow: hidden;
  border: 1px solid #ffffffb3;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px #19322c26, 0 4px 18px #19322c12;
}

.brand-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 72px 66px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, #ffffff12 0, transparent 33%),
    linear-gradient(145deg, #224e4a, var(--green-deep));
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -190px;
  top: -190px;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  box-shadow: 0 0 0 70px #ffffff05, 0 0 0 140px #ffffff04;
}

.brand-content { position: relative; z-index: 2; }
.brand-mark { display: block; width: 124px; height: 124px; border-radius: 27px; box-shadow: 0 20px 45px #071b183d; }
.brand-name { margin: 28px 0 0; font-size: clamp(42px, 5vw, 62px); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.brand-tagline { margin: 14px 0 0; color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }

.ground-layers { position: absolute; z-index: 1; inset: auto 0 0; height: 130px; opacity: .34; }
.ground-layers span { position: absolute; left: -5%; width: 110%; height: 72px; border-radius: 50% 50% 0 0 / 32% 32% 0 0; }
.ground-layers span:nth-child(1) { bottom: 76px; background: #bbb2d0; transform: rotate(-2deg); }
.ground-layers span:nth-child(2) { bottom: 35px; background: #c68878; transform: rotate(2deg); }
.ground-layers span:nth-child(3) { bottom: -16px; background: #8baa74; transform: rotate(-1deg); }

.login-panel {
  min-width: 0;
  padding: 72px 70px 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.login-form-wrap { margin: auto 0; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .17em; }
h1 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -.045em; }
.login-description { margin: 14px 0 34px; color: var(--muted); font-size: 14px; line-height: 1.6; }
form { display: grid; gap: 9px; }
label { margin-top: 10px; color: #36443f; font-size: 13px; font-weight: 750; }
input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fbfcfb;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder { color: #a4aea9; }
input:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px #1e474412; }
button {
  height: 54px;
  margin-top: 17px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  box-shadow: 0 10px 25px #1e474426;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
button:hover:not(:disabled) { background: #28615c; transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .65; }
.login-error { margin: 8px 0 -4px; padding: 11px 13px; border-radius: 9px; color: #9b302a; background: #fff0ed; font-size: 12px; line-height: 1.5; }
.login-footnote { margin: 32px 0 0; color: #98a29e; text-align: center; font-size: 11px; }

@media (max-width: 720px) {
  .login-page { place-items: start center; padding: 16px; }
  .login-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 23px; }
  .brand-panel { min-height: 245px; padding: 34px 32px; }
  .brand-mark { width: 76px; height: 76px; border-radius: 17px; }
  .brand-name { margin-top: 17px; font-size: 38px; }
  .brand-tagline { margin-top: 10px; font-size: 10px; }
  .ground-layers { height: 92px; }
  .ground-layers span { height: 50px; }
  .ground-layers span:nth-child(1) { bottom: 53px; }
  .ground-layers span:nth-child(2) { bottom: 24px; }
  .ground-layers span:nth-child(3) { bottom: -12px; }
  .login-panel { padding: 38px 28px 30px; }
  h1 { font-size: 28px; }
  .login-description { margin-bottom: 22px; }
  .login-footnote { margin-top: 26px; }
}

@media (max-height: 720px) and (min-width: 721px) {
  .login-page { padding: 22px; }
  .login-shell { min-height: 560px; }
  .brand-panel, .login-panel { padding-top: 48px; padding-bottom: 36px; }
}
