@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --green-950: #10240f;
  --green-900: #1f3b17;
  --green-700: #536b2a;
  --green-600: #6f8f3e;
  --green-500: #86a84b;
  --green-soft: #eef5e7;
  --ink: #102033;
  --muted: #667085;
  --line: #dfe7d7;
  --white: #ffffff;
  --danger: #dc2626;
  --shadow: 0 28px 70px rgba(5, 16, 8, 0.34);
}

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

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(134, 168, 75, 0.34), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(111, 143, 62, 0.42), transparent 34%),
    linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 48%, #2f561e 100%);
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

.login-page::before {
  width: 420px;
  height: 420px;
  top: -170px;
  right: -120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.login-page::after {
  width: 560px;
  height: 560px;
  left: -190px;
  bottom: -240px;
  border: 1px solid rgba(168, 212, 111, 0.16);
  background: rgba(168, 212, 111, 0.05);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 548px);
  padding: 36px 34px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 252, 246, 0.965)),
    var(--white);
  box-shadow:
    0 34px 86px rgba(4, 10, 6, 0.42),
    0 14px 28px rgba(111, 143, 62, 0.09);
  backdrop-filter: blur(12px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500), var(--green-700));
}

.login-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.login-brand-logo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 143, 62, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f5faef 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 42px rgba(83, 107, 42, 0.13);
}

.login-brand-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.login-brand-text {
  display: grid;
  align-content: center;
}

.login-brand p {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.login-brand span {
  display: block;
  margin-top: 7px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-heading {
  margin-bottom: 20px;
}

.login-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.login-heading p {
  max-width: 320px;
  margin: 9px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.login-flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.login-flash {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbf5;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.login-flash--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger);
}

.login-flash--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.login-flash--warning {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #b45309;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.login-input {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(111, 143, 62, 0.16);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-input:focus-within {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(111, 143, 62, 0.12);
  transform: translateY(-1px);
}

.login-input svg {
  width: 18px;
  height: 18px;
  color: var(--green-700);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.login-input input::placeholder {
  color: #98a2b3;
  font-weight: 500;
}

.login-input--password {
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  padding-right: 10px;
}

.password-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--green-soft);
  color: var(--green-700);
  outline: 0;
}

.password-toggle .eye-icon {
  width: 18px;
  height: 18px;
}

.password-toggle .eye-icon--hide {
  display: none;
}

.password-toggle.is-visible .eye-icon--show {
  display: none;
}

.password-toggle.is-visible .eye-icon--hide {
  display: block;
}

.login-button {
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5e7a2f 0%, #8bab49 52%, #6f8f3e 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 38px rgba(83, 107, 42, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-button:hover,
.login-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(83, 107, 42, 0.34);
  filter: saturate(1.05) brightness(1.02);
  outline: 0;
}

.login-footer {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-footer > span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.login-footer div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-footer img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.login-footer p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 18px 14px;
  }

  .login-card {
    width: min(100%, 100%);
    padding: 22px 18px;
    border-radius: 26px;
  }

  .login-brand {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 22px;
  }

  .login-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .login-brand-logo img {
    width: 48px;
    height: 48px;
  }

  .login-brand p {
    font-size: 16px;
  }

  .login-heading h1 {
    font-size: 25px;
  }

  .login-input {
    min-height: 56px;
  }

  .login-button {
    min-height: 56px;
  }
}
