:root {
  color-scheme: light;
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #1b1b1b;
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 50px 24px 34px;
}

.login-wrap { width: min(100%, 1120px); }
.login-brand {
  margin-bottom: 27px;
  color: #5b1727;
  font: 700 clamp(24px, 3vw, 32px)/1.15 Georgia, "Times New Roman", serif;
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 710px;
  overflow: hidden;
  border: 1px solid #e6ddd5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 50px rgb(36 23 24 / 9%);
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 62px 45px 34px;
  color: #fff;
  background: linear-gradient(124deg, #75303f 0%, #631f2f 38%, #47121f 100%);
}

.intro-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid #b28a66;
  border-radius: 50%;
  color: #e4c48c;
  font: 32px Georgia, "Times New Roman", serif;
}

.intro-eyebrow {
  margin: 56px 0 26px;
  color: #e7bf8e;
  font-size: 11px;
  letter-spacing: .28em;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(25px, 2.8vw, 32px);
  line-height: 1.48;
  letter-spacing: -.04em;
  font-weight: 700;
}

.intro-description {
  margin: 28px 0 0;
  color: #f3e3e5;
  font-size: 15px;
  line-height: 1.8;
}

.intro-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #d5ae7b;
  font-size: 10px;
  letter-spacing: .16em;
}
.intro-footer span { width: 28px; border-top: 1px solid #c09c6d; }

.login-panel {
  display: grid;
  place-items: center;
  padding: 45px;
}
.panel-content { width: min(100%, 465px); }
.panel-heading { margin-bottom: 24px; text-align: center; }
.panel-heading p {
  margin: 0 0 8px;
  color: #9c7946;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .23em;
}
.panel-heading h2 { margin: 0; font-size: 30px; line-height: 1.2; }

.login-fields { display: flex; flex-direction: column; }
.login-error {
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid #e7b9c2;
  border-radius: 6px;
  background: #fff3f5;
  color: #742536;
  font-size: 13px;
}
.login-fields label {
  margin: 0 0 8px;
  padding-left: 2px;
  font-size: 14px;
  font-weight: 700;
}
.login-fields input {
  width: 100%;
  height: 49px;
  padding: 0 16px;
  border: 1px solid #ded6ce;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #222;
  font-size: 14px;
}
.login-fields input::placeholder { color: #a79f99; }
.login-fields input:focus-visible,
.password-toggle:focus-visible {
  outline: 2px solid #a48353;
  outline-offset: 2px;
}
.login-fields > input { margin-bottom: 23px; }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-field input::-ms-reveal,
.password-field input::-ms-clear { display: none; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #827b74;
  cursor: pointer;
}
.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }

.login-submit {
  width: 100%;
  height: 52px;
  margin-top: 28px;
  border: 0;
  border-radius: 6px;
  background: #5b1a29;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.login-submit:hover { background: #46131f; }
.login-submit:focus-visible { outline: 2px solid #a48353; outline-offset: 2px; }
button:disabled { opacity: 1; cursor: default; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 25px 0 19px;
  color: #a79d93;
  font-size: 12px;
  white-space: nowrap;
}
.login-divider::before,
.login-divider::after { content: ""; flex: 1; border-top: 1px solid #e8e0d8; }
.provider-buttons { display: grid; gap: 11px; }
.provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  border: 1px solid #e2d9d0;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
a.provider-button:hover,
a.provider-button:focus-visible { filter: brightness(0.97); color: #171717; }
.provider-button:disabled { cursor: not-allowed; opacity: 0.55; }
.login-notice { color: #2f6b3a; background: #eef7f0; }
.google-mark { color: #5d83e7; font: 700 20px Arial, sans-serif; }
.kakao-button { border-color: #ffea47; background: #ffea47; }
.kakao-mark { color: #191919; font-size: 17px; line-height: 1; }
.signup-prompt {
  margin: 22px 0 23px;
  color: #a49b94;
  font-size: 12px;
  text-align: center;
}
.signup-prompt span { margin-left: 5px; color: #651c2c; font-weight: 700; }
.access-note {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #ebe4dd;
  color: #a49a8d;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
}
.access-note svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: #ae8b53;
  stroke-width: 1.6;
  flex: none;
}
.login-copyright {
  margin: 17px 0 0;
  color: #a99e93;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 700px) {
  .login-page { display: block; padding: 30px 16px; }
  .login-brand { margin-bottom: 20px; }
  .login-card { grid-template-columns: 1fr; min-height: 0; }
  .login-intro { min-height: 230px; padding: 30px; }
  .intro-mark { width: 50px; height: 50px; font-size: 23px; }
  .intro-eyebrow { margin: 24px 0 12px; }
  .login-intro h1 { font-size: 23px; }
  .intro-description, .intro-footer { display: none; }
  .login-panel { padding: 32px 24px; }
}
