:root {
  --page: #f8fbf6;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #102018;
  --text: #26372f;
  --muted: #66736b;
  --line: #dfe8e2;
  --line-strong: #c8d9ce;
  --green: #168a4a;
  --green-deep: #0f6f3d;
  --green-soft: #eaf7ef;
  --gold: #c99a2e;
  --gold-soft: #fff4d8;
  --danger: #b4232b;
  --shadow: 0 28px 82px rgba(29, 62, 45, 0.14);
  --shadow-soft: 0 14px 38px rgba(29, 62, 45, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(234, 247, 239, 0.88), rgba(255, 253, 248, 0.96) 50%, rgba(255, 244, 216, 0.42)),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 0 43%, rgba(22, 138, 74, 0.035) 43% 57%, transparent 57%),
    linear-gradient(135deg, transparent 0 43%, rgba(201, 154, 46, 0.032) 43% 57%, transparent 57%),
    radial-gradient(circle at 1px 1px, rgba(22, 138, 74, 0.055) 1px, transparent 0);
  background-size: 76px 76px, 76px 76px, 34px 34px;
  opacity: 0.5;
}

body::after {
  z-index: -1;
  right: -120px;
  bottom: -120px;
  width: min(680px, 68vw);
  height: min(680px, 68vw);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.82), rgba(234, 247, 239, 0.86)),
    url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=1200&q=70") center/cover;
  filter: blur(10px);
  opacity: 0.16;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.security-badge {
  position: fixed;
  z-index: 10;
  top: 24px;
  right: 28px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(22, 138, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.security-badge span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(22, 138, 74, 0.12);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.56fr);
  gap: clamp(46px, 7vw, 118px);
  align-items: center;
  width: min(1240px, calc(100% - 56px));
  min-height: calc(100vh - 62px);
  margin: 0 auto;
  padding: 118px 0 72px;
}

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

.login-brand::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 170px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(201, 154, 46, 0.24);
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--radius) 0 0 0;
}

.login-brand a {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 0;
  backdrop-filter: none;
}

.login-brand a::after {
  display: none;
}

.login-brand img {
  display: block;
  width: min(340px, 78vw);
  height: 94px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.eyebrow {
  margin: 46px 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.04;
  text-wrap: balance;
}

.login-brand p:not(.eyebrow) {
  max-width: 660px;
  color: #53625a;
  font-size: 18px;
  line-height: 1.78;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.login-stats span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(22, 138, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.live-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(650px, 100%);
  margin-top: 28px;
}

.live-stat-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 138, 74, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.live-stat-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

.live-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.live-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 138, 74, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 253, 248, 0.68)),
    var(--white);
  box-shadow: 0 34px 90px rgba(29, 62, 45, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 28px;
  backdrop-filter: blur(28px) saturate(1.16);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(22, 138, 74, 0.92), rgba(66, 201, 123, 0.92), rgba(201, 154, 46, 0.86));
}

.login-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 138, 74, 0.1), transparent 68%);
}

.card-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-kicker span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green-deep);
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(22, 138, 74, 0.22);
}

.card-kicker strong {
  color: var(--ink);
  font-size: 18px;
}

.tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid rgba(22, 138, 74, 0.12);
  border-radius: var(--radius);
  background: #f2f7f3;
  padding: 6px;
}

.tabs button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  color: #66736b;
  background: transparent;
  font-weight: 900;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tabs button:hover {
  color: var(--green-deep);
}

.tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 12px 28px rgba(22, 138, 74, 0.18);
}

.login-form {
  position: relative;
  z-index: 1;
  display: none;
  gap: 17px;
  margin-top: 28px;
}

.login-form.active {
  display: grid;
}

.login-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.12;
}

.login-form p,
.form-note {
  color: var(--muted);
  line-height: 1.62;
}

.login-form p {
  margin: 0 0 6px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 950;
  transform: translateY(-50%);
}

input,
select {
  min-height: 56px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 15px 0 60px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

input::placeholder {
  color: #9ba7a0;
}

input:focus,
select:focus {
  border-color: rgba(22, 138, 74, 0.55);
  outline: 4px solid rgba(22, 138, 74, 0.12);
}

.login-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #2fc36d 55%, var(--gold));
  box-shadow: 0 18px 38px rgba(22, 138, 74, 0.2);
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(22, 138, 74, 0.24);
}

.form-note {
  min-height: 22px;
  font-size: 13px;
  font-weight: 800;
}

.login-footer {
  width: min(1240px, calc(100% - 56px));
  margin: -46px auto 0;
  padding-bottom: 24px;
  color: #748078;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 86px;
  }

  .login-card {
    order: 1;
  }

  .login-brand {
    order: 2;
    text-align: center;
  }

  .login-brand::before {
    display: none;
  }

  .login-brand a {
    margin: 0 auto;
  }

  .login-brand img {
    object-position: center;
  }

  .login-brand p:not(.eyebrow),
  h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .login-stats {
    justify-content: center;
  }

  .live-stat-grid {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .security-badge {
    top: 12px;
    right: 12px;
    min-height: 34px;
    font-size: 12px;
    padding: 0 11px;
  }

  .login-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 64px;
    padding-bottom: 44px;
  }

  .login-card {
    padding: 20px;
  }

  .tabs button {
    min-height: 44px;
    font-size: 14px;
  }

  .login-form h2 {
    font-size: 26px;
  }

  h1 {
    font-size: 34px;
  }

  .login-brand img {
    width: min(282px, 78vw);
    height: 78px;
  }

  .login-brand p:not(.eyebrow) {
    font-size: 16px;
  }

  .login-stats span {
    min-height: 38px;
  }

  .live-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .live-stat-grid article {
    padding: 13px 10px;
  }

  .live-stat-grid strong {
    font-size: 20px;
  }

  .live-stat-grid span {
    font-size: 10px;
  }

  input,
  select {
    min-height: 54px;
  }
}
