:root {
  --paper: #fbfaf7;
  --ink: #111110;
  --muted: #746f67;
  --line: #8d8880;
  --accent: #bd5537;
  --error: #a13d2d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 32px;
}

.wordmark {
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.home-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.login-page {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 74px);
  padding: clamp(75px, 11vh, 118px) 24px 72px;
}

.login-panel {
  width: min(500px, 100%);
}

.login-heading {
  text-align: center;
}

.login-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.login-heading h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 400;
}

.page-marker {
  position: absolute;
  top: 41px;
  right: clamp(26px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  writing-mode: vertical-rl;
}

.page-marker i {
  width: 1px;
  height: 65px;
  background: #bdb7ae;
}

form {
  margin-top: 58px;
}

.field {
  margin-bottom: 31px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
}

.line-control {
  position: relative;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}

.line-control input {
  width: 100%;
  height: 45px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.line-control input::-ms-reveal,
.line-control input::-ms-clear {
  display: none;
}

.line-control input::placeholder {
  color: #a6a097;
}

.line-control:focus-within {
  border-bottom-color: var(--ink);
}

.line-control.invalid {
  border-bottom-color: var(--error);
}

.line-control.invalid input {
  color: var(--error);
}

.field-message {
  min-height: 15px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.field-message.error {
  color: var(--error);
}

.password-control {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
}

.password-toggle:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.eye-slash.is-hidden {
  display: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -3px;
}

.remember-id {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}

.remember-id input {
  width: 15px;
  height: 15px;
  margin: 0 9px 0 0;
  accent-color: var(--ink);
}

.account-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.account-links a {
  padding-block: 5px;
}

.account-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-links i {
  width: 1px;
  height: 11px;
  background: #c9c3ba;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  margin-top: 39px;
  padding: 0 21px 0 25px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.submit-button span {
  font-size: 27px;
  line-height: 1;
}

.submit-button:hover {
  border-color: #a7462d;
  background: #a7462d;
}

.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.form-message.error {
  color: var(--error);
}

.signup-prompt {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.signup-prompt a {
  margin-left: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

@media (max-width: 720px) {
  .page-marker {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .wordmark {
    font-size: 30px;
  }

  .login-page {
    min-height: calc(100vh - 64px);
    padding: 67px 20px 58px;
  }

  .login-heading h1 {
    font-size: 34px;
  }

  form {
    margin-top: 49px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .submit-button {
    margin-top: 31px;
  }
}
