:root {
  --primary: #166534;
  --primary-hover: #14532d;
  --text: #17201b;
  --muted: #68736c;
  --border: #dce4df;
  --surface: #ffffff;
  --page: #f4f7f5;
  --error: #b42318;
  --error-bg: #fef3f2;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.login-shell { width: 100%; max-width: 920px; }

.login-card {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(22, 101, 52, .1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(28, 48, 37, .12), 0 3px 12px rgba(28, 48, 37, .05);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: 46px 42px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #14532d 0%, #166534 55%, #15803d 100%);
}

.brand-panel::before, .brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.brand-panel::before { top: -120px; right: -190px; width: 310px; height: 310px; }
.brand-panel::after { bottom: -110px; left: -135px; width: 230px; height: 230px; }
.brand-logo, .brand-copy { position: relative; z-index: 1; }

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  padding: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.brand-logo img { display: block; width: 100%; max-width: 276px; height: auto; }

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-eyebrow::before { width: 22px; height: 2px; content: ""; background: currentColor; }

.brand-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.brand-copy p:last-child {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.65;
}

.form-panel { display: flex; align-items: center; padding: 54px 58px; }
.login-form { width: 100%; }
.login-form__header { margin-bottom: 32px; }

.login-form__header h1 {
  margin: 0 0 9px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.login-form__header p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #344039;
  font-size: 14px;
  font-weight: 650;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #7c8981;
  transform: translateY(-50%);
  pointer-events: none;
}

.TextLogin {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 48px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.TextLogin:hover { border-color: #b5c2ba; }
.TextLogin:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 101, 52, .11); }
.TextLogin::placeholder { color: #9aa49e; }

.Buttom {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  padding: 13px 20px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(22, 101, 52, .2);
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.Buttom:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 22px rgba(22, 101, 52, .26);
  transform: translateY(-1px);
}

.Buttom:active { transform: translateY(0); }
.Buttom:focus-visible { outline: 3px solid rgba(22, 101, 52, .24); outline-offset: 3px; }

.error {
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid #fecdca;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

#Pie { margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; }
#Pie p { margin: 0; line-height: 1.6; }
#Pie a { color: var(--primary); font-weight: 700; text-decoration: none; }
#Pie a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .login-page { padding: 22px 16px 18px; }
  .login-card { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; border-radius: 20px; }
  .brand-panel { min-height: auto; padding: 28px; }
  .brand-logo { min-height: 96px; padding: 12px 18px; }
  .brand-logo img { max-width: 220px; }
  .brand-copy { display: none; }
  .form-panel { padding: 36px 28px 38px; }
}

@media (max-width: 390px) {
  .brand-panel, .form-panel { padding-right: 22px; padding-left: 22px; }
  .login-form__header h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
