*, ::before, ::after {
  box-sizing: border-box;
}

:root {
  --bg: #EDEEE9;
  --surface: #FFFFFF;
  --field: #F3F4EF;
  --border: #E7E8E2;
  --green-900: #1D3B31;
  --green-700: #2F5848;
  --lime: #E1F07E;
  --text-primary: #16231D;
  --text-secondary: #69736E;
  --text-on-dark: #F4F7F2;
  --text-on-dark-muted: #B7C6BE;
  --radius-panel: 28px;
  --radius-field: 12px;
  --font: Poppins, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  background-color: var(--bg);
  font-family: var(--font);
  color: var(--text-primary);
}

h1, h2, p { margin: 0; }

/* Layout: fills the viewport, hero takes the remaining width */
.login {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

/* Hero panel */
.hero {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
  padding: 48px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background-image: linear-gradient(180deg, var(--green-700) 0%, var(--green-900) 100%);
}
.hero__ring,
.hero__circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring {
  top: -110px;
  right: -22px;
  width: 440px;
  height: 440px;
  border: 40px solid #FFFFFF12;
  z-index: 0;
}
.hero__circle {
  bottom: -128px;
  left: -120px;
  width: 340px;
  height: 340px;
  background-color: #FFFFFF08;
  z-index: 1;
}
.brand, .hero__copy, .stats { position: relative; }
.brand { z-index: 2; }
.hero__copy { z-index: 3; }
.stats { z-index: 4; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.brand__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid #FFFFFF1A;
  outline-offset: -0.5px;
}
.brand__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: var(--text-on-dark);
}
.brand__sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-on-dark-muted);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: var(--lime);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.hero__title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.154;
  letter-spacing: -1px;
  color: var(--text-on-dark);
}
.hero__desc {
  max-width: 480px;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--text-on-dark-muted);
}

.stats {
  display: flex;
  gap: 12px;
}
.stat {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background-color: #FFFFFF0F;
  outline: 1px solid #FFFFFF14;
  outline-offset: -0.5px;
}
.stat__value {
  font-size: 28px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -0.5px;
  color: var(--lime);
}
.stat__label {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--text-on-dark-muted);
}

/* Form panel */
.panel {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  width: 620px;
  padding: 48px 48px 32px;
  border-radius: var(--radius-panel);
  background-color: var(--surface);
}
.panel__wrap {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.panel__copyright {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}
.form__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}
.form__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -0.5px;
}
.form__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}
.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-field);
  background-color: var(--field);
  outline: 1px solid var(--border);
  outline-offset: -0.5px;
  transition: outline-color 150ms ease, background-color 150ms ease;
}
.field__box--grow { flex: 1 1 0; min-width: 0; }
.field__box:focus-within {
  background-color: var(--surface);
  outline: 2px solid var(--green-900);
  outline-offset: -1px;
}
.field__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.field__input {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text-primary);
}
.field__input::placeholder { color: var(--text-secondary); opacity: 1; }
.field__toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.field__toggle:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}

.captcha-row {
  display: flex;
  gap: 12px;
}
.captcha {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-field);
  background-color: var(--green-900);
  color: var(--lime);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  user-select: none;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-field);
  background-color: var(--lime);
  color: var(--green-900);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms ease;
}
.btn:hover { background-color: #D8E86F; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}
.btn__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.actions__help {
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .field__box, .btn { transition: none; }
}

/* Tablet and below: stack the panels */
@media (max-width: 1100px) {
  .login { flex-direction: column; }
  .hero { flex: none; gap: 40px; }
  .panel { width: 100%; }
  .panel__wrap { padding: 16px 0 32px; }
}
@media (max-width: 640px) {
  .login { padding: 12px; gap: 12px; }
  .hero, .panel { padding: 28px 20px 24px; }
  .hero__desc { font-size: 14px; line-height: 22px; }
  .stat { padding: 14px; }
  .stat__value { font-size: 22px; line-height: 30px; }
  .stat__label { font-size: 12px; overflow-wrap: anywhere; }
  .form__title { font-size: 24px; line-height: 34px; }
}
