:root {
  color-scheme: light;
  --zde-ink: #233936;
  --zde-muted: #61706c;
  --zde-green: #1f453d;
  --zde-paper: #f7f2ea;
  --zde-card: #fffdfa;
  --zde-line: #d6cec1;
  --zde-gold: #b98a45;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--zde-paper);
}

body.zde-portal-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(185, 138, 69, 0.11), transparent 31rem),
    var(--zde-paper);
  color: var(--zde-ink);
  font: 17px/1.6 Arial, sans-serif;
}

a {
  color: inherit;
}

.zde-portal-skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
}

.zde-portal-skip:focus {
  transform: none;
}

.zde-portal-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(35, 57, 54, 0.18);
}

.zde-portal-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.zde-portal-brand span {
  font: 400 clamp(1.35rem, 3vw, 1.85rem)/1.1 Georgia, serif;
}

.zde-portal-brand small {
  margin-top: 5px;
  color: var(--zde-muted);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zde-portal-logout,
.zde-portal-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--zde-green);
  border-radius: 10px;
  color: var(--zde-green);
  font-weight: 700;
  text-decoration: none;
}

.zde-portal-main {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 180px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(46px, 8vw, 100px) 0;
}

.zde-portal-login {
  width: min(590px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--zde-line);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 24px 70px rgba(35, 57, 54, 0.1);
}

.zde-portal-hub {
  width: 100%;
}

.zde-portal-kicker {
  margin: 0 0 14px;
  color: var(--zde-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.zde-portal-main h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--zde-ink);
  font: 400 clamp(2.35rem, 7vw, 5.4rem)/1.02 Georgia, serif;
  letter-spacing: -0.035em;
}

.zde-portal-login h1 {
  font-size: clamp(2.15rem, 7vw, 4rem);
}

.zde-portal-intro {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--zde-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

#zde-portal-loginform {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

#zde-portal-loginform p {
  margin: 0;
}

#zde-portal-loginform label {
  display: block;
  margin-bottom: 7px;
  color: var(--zde-ink);
  font-size: 0.9rem;
  font-weight: 750;
}

#zde-portal-loginform input[type="text"],
#zde-portal-loginform input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid #aeb9b5;
  border-radius: 10px;
  background: #fff;
  color: var(--zde-ink);
  font: inherit;
}

#zde-portal-loginform input[type="submit"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--zde-green);
  color: #fff;
  font: 750 1rem/1.2 Arial, sans-serif;
  cursor: pointer;
}

#zde-portal-loginform input:focus-visible,
.zde-portal-body a:focus-visible {
  outline: 3px solid var(--zde-gold);
  outline-offset: 3px;
}

.zde-portal-help,
.zde-portal-note,
.zde-portal-security {
  margin: 18px 0 0;
  color: var(--zde-muted);
  font-size: 0.88rem;
}

.zde-portal-help a {
  text-underline-offset: 3px;
}

.zde-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 6vw, 66px);
}

.zde-portal-card {
  display: grid;
  min-height: 250px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--zde-line);
  border-radius: 20px;
  background: var(--zde-card);
  box-shadow: 0 16px 40px rgba(35, 57, 54, 0.07);
  text-decoration: none;
}

.zde-portal-card:hover {
  border-color: var(--zde-gold);
  transform: translateY(-2px);
}

.zde-portal-number {
  color: var(--zde-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.zde-portal-card-title {
  margin-top: 15px;
  font: 400 clamp(1.65rem, 4vw, 2.45rem)/1.08 Georgia, serif;
}

.zde-portal-card-copy {
  margin-top: 13px;
  color: var(--zde-muted);
}

.zde-portal-card-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 24px;
  color: var(--zde-green);
  font-weight: 800;
}

.zde-portal-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  border-top: 1px solid rgba(35, 57, 54, 0.18);
  color: var(--zde-muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 680px) {
  .zde-portal-header,
  .zde-portal-main,
  .zde-portal-footer {
    width: min(100% - 28px, 1180px);
  }

  .zde-portal-header {
    min-height: 80px;
  }

  .zde-portal-brand small {
    max-width: 24ch;
    letter-spacing: 0.08em;
  }

  .zde-portal-grid {
    grid-template-columns: 1fr;
  }

  .zde-portal-card {
    min-height: 220px;
  }

  .zde-portal-footer {
    flex-wrap: wrap;
    padding: 18px 0;
  }
}

@media (max-width: 420px) {
  .zde-portal-brand small {
    display: none;
  }

  .zde-portal-logout {
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .zde-portal-login {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .zde-portal-card {
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .zde-portal-card,
  .zde-portal-login {
    box-shadow: none;
  }
}

@media print {
  .zde-portal-header,
  .zde-portal-footer {
    display: none;
  }
}

