:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --panel: #ffffff;
  --primary: #28743a;
  --primary-strong: #1f5f2f;
  --primary-soft: #edf7ef;
  --accent: #f4ca4d;
  --shadow: 0 18px 45px rgba(32, 65, 45, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(40, 116, 58, 0.08), rgba(244, 202, 77, 0.10)),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.login-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  width: min(1500px, calc(100vw - 32px));
  min-height: min(840px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: min(840px, calc(100vh - 32px));
  padding: 78px 72px;
  overflow: hidden;
  align-items: flex-end;
  background: #28743a;
  color: #ffffff;
}

.brand-panel::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  content: "";
}

.brand-art-frame {
  position: absolute;
  inset: 48px 58px 142px;
  display: flex;
  overflow: visible;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  pointer-events: none;
}

.brand-art {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.brand-copy .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.brand-copy h2 {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.18;
  letter-spacing: 0;
}

.brand-copy p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.82);
}

.login-card {
  position: relative;
  display: flex;
  min-height: min(840px, calc(100vh - 32px));
  padding: 86px 78px;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.brand-logo {
  display: block;
  width: 86px;
  height: auto;
  margin-bottom: 38px;
}

.welcome-art {
  display: none;
}

.copy {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.top {
  margin-bottom: 22px;
}

.eyebrow,
.label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

strong {
  display: block;
  font-size: 22px;
  line-height: 1.35;
}

.actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.button.secondary {
  background: #ffffff;
}

.helper {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .login-shell {
    align-items: stretch;
    padding: 18px;
  }

  .login-surface {
    display: block;
    min-height: 0;
  }

  .brand-panel {
    min-height: 220px;
    padding: 28px 22px;
  }

  .brand-panel::before {
    inset: 14px;
  }

  .brand-art-frame {
    inset: 22px 28px 54px;
  }

  .brand-copy h2 {
    max-width: 260px;
    font-size: 30px;
  }

  .brand-copy p {
    display: none;
  }

  .login-card {
    min-height: 0;
    padding: 34px 24px 30px;
  }

  .brand-logo {
    width: 62px;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 28px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
