:root {
  color: #20211f;
  background: #f4f5f0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  min-height: 100vh;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #d9e1d2;
}

.login-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 23, 0.03) 40%, rgba(20, 28, 23, 0.64) 100%);
  content: "";
}

.login-visual img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.visual-copy {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 7%;
  left: 7%;
  color: #fff;
}

.visual-copy span,
.login-copy > p:first-child {
  display: block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-copy h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(42px, 7vw, 104px);
  background: #fff;
}

.brand {
  position: absolute;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
}

.brand i {
  width: 13px;
  height: 13px;
  background: #ee5c3b;
  border-radius: 50%;
  box-shadow: 9px 0 0 #f3b94e;
}

.login-copy { max-width: 460px; }

.login-copy > p:first-child { color: #16765b; }

.login-copy h2 {
  margin: 0 0 13px;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-copy > p:last-child {
  margin: 0;
  color: #6e716b;
  font-size: 15px;
  line-height: 1.7;
}

form {
  width: 100%;
  max-width: 460px;
  margin-top: 38px;
}

label {
  display: block;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 680;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #d7d9d3;
  border-radius: 6px;
  outline: none;
  color: #20211f;
  background: #fbfcf9;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #16765b;
  box-shadow: 0 0 0 3px rgba(22, 118, 91, 0.12);
}

input::placeholder { color: #a2a59f; }

.key-field { position: relative; }
.key-field input { padding-right: 66px; }

.key-field button {
  position: absolute;
  top: 50%;
  right: 9px;
  height: 36px;
  padding: 0 9px;
  border: 0;
  color: #16765b;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.form-error {
  margin: 14px 0 0;
  color: #b63b2d;
  font-size: 13px;
  line-height: 1.5;
}

.login-button {
  width: 100%;
  height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #20211f;
  font-weight: 720;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.login-button:hover { background: #16765b; }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { cursor: wait; opacity: 0.64; }

.pickup-link {
  display: block;
  margin-top: 18px;
  color: #16765b;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
  text-decoration: none;
}

.pickup-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .login-shell { display: block; }
  .login-visual { min-height: 31vh; max-height: 300px; }
  .login-visual img { min-height: 31vh; }
  .visual-copy { right: 24px; bottom: 24px; left: 24px; }
  .visual-copy h1 { font-size: 30px; }
  .login-panel { min-height: 69vh; padding: 70px 24px 40px; }
  .brand { top: calc(31vh + 22px); }
  .login-copy h2 { font-size: 28px; }
  form { margin-top: 30px; }
}
