:root {
  --bg-main: #e9eeea;
  --bg-white: #ffffff;
  --text-primary: #1c221d;
  --text-secondary: #5a6b5d;
  --text-muted: #8fa391;
  --border: #ccd8ce;
  --accent: #4d7a5c;
  --accent-hover: #3a6148;
  --accent-light: #e4ede7;
  --green: #3a9e6f;
  --red: #c0392b;
  --shadow-lg: 0 18px 48px rgba(40, 70, 50, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 18% 18%, rgba(77, 122, 92, .18), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(58, 107, 138, .14), transparent 28%),
    linear-gradient(135deg, #f6f9f6 0%, #e8efea 45%, #d7e4da 100%);
}

.login-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 24px;
  background: rgba(255, 255, 255, .56);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background:
    linear-gradient(150deg, rgba(28, 34, 29, .86), rgba(58, 97, 72, .82)),
    linear-gradient(135deg, #4d7a5c, #2f4b39);
  color: #fff;
  isolation: isolate;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  z-index: -1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.login-brand-name {
  font-size: 18px;
  font-weight: 800;
}

.login-brand-meta {
  margin-top: 2px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-copy {
  max-width: 520px;
  padding-bottom: 18px;
}

.login-kicker {
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 560px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .96;
  letter-spacing: 0;
}

.login-copy p:last-child {
  max-width: 420px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.55;
}

.login-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-source-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 255, 255, .88);
}

.login-card-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-card h2 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #f8fbf8;
  color: var(--text-primary);
  font: inherit;
  outline: none;
  padding: 0 14px;
  transition: border .16s, box-shadow .16s, background .16s;
}

.login-field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 122, 92, .12);
}

.login-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.login-error:empty { display: none; }

.login-submit {
  height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(77, 122, 92, .26);
  transition: transform .16s, box-shadow .16s, opacity .16s;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(77, 122, 92, .32);
}

.login-submit:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

@media (max-width: 820px) {
  .login-page {
    padding: 14px;
    place-items: stretch;
  }

  .login-shell {
    min-height: calc(100vh - 28px);
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 320px;
    padding: 26px;
  }

  .login-card {
    padding: 28px 24px 32px;
  }
}
