:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #171c19;
  background: #f6f7f3;
  font-synthesis: none;
  --green: #244733;
  --green-dark: #163322;
  --muted: #4e5d53;
  --rule: #cdd7cd;
  --paper: #fcfdfb;
  --glass: rgba(252, 253, 251, .89);
  --heading: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell {
  width: min(100%, 88rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: auto;
  padding: clamp(1rem, 4vw, 3.5rem);
}

.identity {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .2rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
  background: #f6f7f3;
}
.identity img {
  display: block;
  object-fit: contain;
  flex: none;
  mix-blend-mode: multiply;
}
.identity-name { display: grid; gap: .25rem; }
.identity-name strong { font-size: 1.05rem; }
.identity-name span, .identity-product { color: var(--muted); font-size: .875rem; }
.identity-product {
  margin-left: auto;
  color: #202124;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.identity-product strong { color: #0068d9; }

.layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  grid-template-areas: "access intro";
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: min(37rem, 73vh);
  margin-top: clamp(1.15rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 5.3vw, 5rem);
  overflow: hidden;
  border: 1px solid #dbe2d9;
  border-radius: 1.5rem;
  background: #fcfdf9;
}
.layout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(100deg, #f6f7f3 8%, rgba(246, 247, 243, .96) 39%, rgba(246, 247, 243, .78) 66%, rgba(246, 247, 243, .43)),
    url("./edificio.webp") right center / cover no-repeat,
    #dce5da;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.intro { grid-area: intro; }
.intro h1 {
  margin: .75rem 0 0;
  font-weight: 300;
  font-size: clamp(3.25rem, 6.7vw, 7rem);
  line-height: .98;
  letter-spacing: -.062em;
}
.intro em {
  display: block;
  color: var(--green);
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -.072em;
}
.intro-description { max-width: 29rem; margin: 1.5rem 0 0; color: #34493c; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.5rem .25rem 0; color: var(--muted); font-size: .84rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--green); }
.legal { width: min(100%, 48rem); margin: clamp(2rem, 6vw, 5rem) auto; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--rule); border-radius: 1.25rem; background: var(--paper); line-height: 1.65; }
.legal h1 { margin: .3rem 0 1rem; font: 400 clamp(2.1rem, 5vw, 3.5rem)/1.1 var(--heading); }
.legal h2 { margin: 1.8rem 0 .4rem; font-size: 1.12rem; }
.legal p, .legal ul { margin: .65rem 0; }
.legal a { color: var(--green); }

.panel {
  grid-area: access;
  min-width: 0;
  padding: clamp(1.35rem, 3.25vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .93);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 1.2rem 3.4rem rgba(25, 54, 39, .15), inset 0 1px 1px #fff;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel {
    background: var(--glass);
    -webkit-backdrop-filter: blur(19px) saturate(120%);
    backdrop-filter: blur(19px) saturate(120%);
  }
}
.panel h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.muted { margin: .8rem 0 1.4rem; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: .65rem; }
label { font-size: .9rem; font-weight: 650; }
input, button, select {
  min-height: 3rem;
  border-radius: .65rem;
  padding: .65rem .85rem;
  font: inherit;
}
input, select {
  max-width: 100%;
  border: 1px solid #839588;
  background-color: #fff;
  color: inherit;
}
input { width: 100%; }
select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, #244733 50%), linear-gradient(135deg, #244733 50%, transparent 50%);
  background-position: right 1.16rem center, right .85rem center;
  background-size: .31rem .31rem;
  background-repeat: no-repeat;
}
button {
  border: 1px solid var(--green);
  border-radius: 2rem;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.3;
  padding-inline: 1.25rem;
}
form > button { margin-top: .35rem; }
button:hover { background: var(--green-dark); }
button:disabled { opacity: .7; cursor: wait; }
button.secondary { background: rgba(255, 255, 255, .68); color: var(--green); }
button.secondary:hover { background: #e6eee5; }
:focus-visible { outline: 3px solid #156b9c; outline-offset: 3px; }
.message { margin: 1rem 0 0; color: var(--green); line-height: 1.5; }
.message[data-error] { color: #8e2631; }
.message:empty { display: none; }

.shell[data-signed-in] .identity-product { display: block; }
.shell[data-signed-in] {
  width: min(100%, 98rem);
  background: #f6f7f3;
}
.shell[data-signed-in] .layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "access";
  min-height: auto;
  margin-top: 1.5rem;
  padding: clamp(.65rem, 2.3vw, 2rem);
  border-radius: 1.35rem;
}
.shell[data-signed-in] .layout::before {
  background:
    linear-gradient(115deg, rgba(246, 247, 243, .96) 4%, rgba(246, 247, 243, .82) 52%, rgba(229, 239, 247, .72)),
    url("./edificio.webp") right top / cover no-repeat;
}
.shell[data-signed-in] .intro { display: none; }
.shell[data-signed-in] .panel {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 .6rem 2.2rem rgba(25, 54, 39, .07);
}
.admin-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.25rem; border-bottom: 1px solid var(--rule); }
.admin-nav a {
  padding: .7rem 0;
  color: var(--green);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.admin-nav a:hover { color: #0068d9; }
.staff-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
}
.staff-header .eyebrow { margin-bottom: .4rem; }
.profile {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  min-width: 0;
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .6);
}
.profile div { min-width: 0; }
.profile dt { font-size: .875rem; color: var(--muted); }
.profile dd { margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.management { margin-top: 2rem; border-top: 1px solid rgba(36, 71, 51, .17); padding-top: 1.5rem; }
.management h3 {
  margin: 0 0 1rem;
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green);
}
.management h4 { margin: 0 0 .9rem; font-size: 1.08rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(36, 71, 51, .18);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .42);
}
.account-card { margin-top: 1rem; }
.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, auto) auto auto;
  gap: .6rem;
  align-items: center;
  padding: .75rem 0;
  border-top: 1px solid var(--rule);
}
.account-row > span { overflow-wrap: anywhere; }
.account-row button { min-height: 2.75rem; }
.account-row .state { font-size: .9rem; color: var(--muted); }
#new-group:not([hidden]) { display: grid; gap: .65rem; }
#groups-panel > label { display: block; margin-bottom: .5rem; }
#group-data h4 { margin-top: 1.25rem; }
#group-data ul { padding-left: 1.25rem; }
#group-data li { margin: .4rem 0; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .admin-grid, .account-row { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "access";
    min-height: auto;
    gap: 1.15rem;
  }
  .layout::before {
    background:
      linear-gradient(180deg, #fcfdf9 3%, rgba(252, 253, 249, .78) 26%, rgba(222, 233, 220, .42) 70%, #dce5da),
      url("./edificio.webp") 59% 50% / cover no-repeat;
  }
  .intro h1 { font-size: clamp(2.6rem, 10vw, 5rem); }
  .intro em { display: inline; }
  .shell:not([data-signed-in]) .panel { padding: 1.1rem 1.35rem; }
  #login .muted { margin: .65rem 0 1rem; }
}
@media (max-width: 390px) {
  .layout { padding: 1rem; }
  .staff-header { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .profile { width: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
