:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #132b20;
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: #125337; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #ba550f; outline-offset: 3px; }

.merchant-login {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
  min-height: 100vh;
  min-height: 100svh;
}

.merchant-login-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 76px);
}

.merchant-login-content { width: min(100%, 420px); }
.merchant-login-logo { display: inline-flex; margin-bottom: 24px; }
.merchant-login-logo img { max-width: 100%; object-fit: contain; object-position: left center; }

.merchant-login h1 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.merchant-login h1::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 13px;
  border-radius: 3px;
  background: #e77522;
}

.merchant-login label { display: block; margin: 16px 0 7px; font-weight: 650; }
.merchant-login input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8b9b92;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.merchant-login-password { position: relative; }
.merchant-login-password input { padding-inline-end: 72px !important; }
.merchant-login-password button {
  position: absolute;
  inset: 2px 2px 2px auto;
  min-width: 64px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #125337;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.merchant-login-recovery { margin: 14px 0 22px; text-align: end; }
.merchant-login-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #104632;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.merchant-login-submit:hover { background: #0b3827; }
.merchant-login-register { margin: 23px 0 0; text-align: center; color: #43574c; }
.merchant-login-register a { font-weight: 650; }
.merchant-login-error { padding: 12px; border: 1px solid #dba39b; border-radius: 8px; color: #83291e; background: #fff3f0; }

@media (max-width: 767px) {
  .merchant-login { display: block; }
  .merchant-login-panel { padding: 20px 20px 28px; }
  .merchant-login-logo { margin-bottom: 16px; }
  .merchant-login-logo img { width: 155px; height: 50px; }
}

@media (max-width: 767px) {
  .merchant-login-panel { padding: 18px 16px 24px; }
  .merchant-login-logo { margin-bottom: 12px; }
  .merchant-login-logo img { width: 132px; height: 42px; }
  .merchant-login-content input { font-size: 16px; }
}
