:root {
  color-scheme: light;
  --green: #087d63;
  --green-dark: #075b49;
  --gold: #c99b35;
  --gold-light: #efd994;
  --ink: #173a31;
  --line: #e6d6ab;
  font-family: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 9% 9%, rgba(239,220,165,.3), transparent 28%),
    radial-gradient(ellipse at 92% 88%, rgba(231,220,188,.28), transparent 27%),
    linear-gradient(135deg,#faf9f4 0%,#f3f5f3 54%,#faf9f5 100%);
}
body::before, body::after {
  position: fixed;
  z-index: 0;
  width: 720px;
  height: 390px;
  content: "";
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 50%;
}
body::before {
  top: -230px;
  left: -250px;
  border-bottom: 2px solid rgba(201,155,53,.75);
  transform: rotate(-24deg);
  box-shadow: 0 13px 0 -11px rgba(201,155,53,.55), 0 26px 0 -23px rgba(201,155,53,.38);
}
body::after {
  right: -270px;
  bottom: -250px;
  border-top: 2px solid rgba(201,155,53,.75);
  transform: rotate(-24deg);
  box-shadow: 0 -13px 0 -11px rgba(201,155,53,.55), 0 -26px 0 -23px rgba(201,155,53,.38);
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(80vw, 1600px);
  min-height: min(80vh, 900px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(43,52,39,.1);
}
.welcome-panel {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  aspect-ratio: 7486 / 8192;
  background: #075642;
}
.welcome-panel-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px clamp(38px,5vw,76px);
  background: #fff;
}
.form-content { width: 100%; max-width: 560px; margin: auto; }
.login-avatar {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 18px;
  color: #a77b1c;
  background: #fff8e6;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
}
.login-avatar svg { width: 38px; height: 38px; }
.form-content h1 {
  margin: 0;
  color: #155b49;
  font: 800 clamp(34px,3.2vw,46px)/1.15 "Manrope",sans-serif;
  letter-spacing: -.04em;
  text-align: center;
}
.form-underline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 21px auto 38px;
  color: var(--gold);
}
.form-underline::before,.form-underline::after {
  flex: 1;
  height: 1.5px;
  content: "";
  background: linear-gradient(90deg,transparent,var(--gold));
}
.form-underline::after { background: linear-gradient(90deg,var(--gold),transparent); }
.form-underline span { padding: 0 13px; font-size: 18px; line-height: 1; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.input-wrap input {
  width: 100%;
  height: 64px;
  padding: 0 24px 0 76px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  outline: none;
  color: #2e3e38;
  background: #fff;
  font: 500 17px "DM Sans",sans-serif;
  transition: border .18s,box-shadow .18s;
}
.input-wrap input::placeholder { color: #7b817e; }
.input-wrap input:hover { border-color: #ad812b; }
.input-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8,125,99,.1); }
.input-wrap input[aria-invalid="true"] { border-color: #c74b4b; box-shadow: 0 0 0 3px rgba(199,75,75,.08); }
.input-icon {
  position: absolute;
  left: 24px;
  width: 27px;
  height: 27px;
  color: #a77b1c;
  pointer-events: none;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px 8px;
  color: #4f5e58;
  font-size: 14px;
  cursor: pointer;
}
.remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}
.form-message { min-height: 0; margin: 0; color: #ad3939; font-size: 13px; }
.form-message:not(:empty) { min-height: 22px; margin: -4px 0 9px; }
.submit-button {
  display: flex;
  width: 100%;
  height: 66px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(100deg,#0b8b6b,#076b55);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(8,125,99,.17);
  font: 700 16px "DM Sans",sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .16s,box-shadow .16s,filter .16s;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 11px 21px rgba(8,125,99,.22); filter: brightness(1.04); }
.submit-button:active { transform: translateY(0); }
@media (max-width: 850px) {
  body { padding: 24px; }
  .login-shell { width: min(92vw, 620px); min-height: 0; grid-template-columns: 1fr; }
  .welcome-panel { width: 100%; min-height: 0; }
  .form-panel { padding: 44px 42px; }
  .form-content { max-width: 500px; }
}
@media (max-width: 480px) {
  body { display: block; padding: 14px; }
  .login-shell { border-radius: 20px; }
  .form-panel { padding: 34px 24px; }
  .login-avatar { width: 58px; height: 58px; margin-bottom: 14px; }
  .login-avatar svg { width: 31px; height: 31px; }
  .form-content h1 { font-size: 31px; }
  .form-underline { margin: 17px auto 28px; }
  .input-wrap input { height: 57px; padding-left: 64px; font-size: 15px; }
  .input-icon { left: 20px; width: 23px; height: 23px; }
  .submit-button { height: 59px; font-size: 14px; }
  body::before,body::after { width: 420px; height: 240px; opacity: .55; }
  body::before { top: -150px; left: -180px; }
  body::after { right: -180px; bottom: -160px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
.login-demo-note{margin:18px 0 0;text-align:center;color:#7a847e;font-size:12px}
