:root {
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #242622;
  background: #f3f1eb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 900px;
  margin: 6vh auto;
  padding: 30px;
}
.portal-heading {
  max-width: 660px;
}
small {
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #b95737;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 15px 0 14px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}
p,
footer {
  color: #666b65;
  line-height: 1.8;
}
.login-card {
  max-width: 540px;
  background: #fff;
  border: 1px solid #d8d5ca;
  border-radius: 14px;
  margin-top: 28px;
  box-shadow: 0 6px 25px #2426220d;
  overflow: hidden;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d8d5ca;
  background: #f8f6f1;
}
.login-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #777a73;
  padding: 16px 12px;
}
.login-tabs button[aria-selected="true"] {
  color: #b95737;
  background: #fff;
  border-bottom-color: #b95737;
  font-weight: 600;
}
#loginPanel {
  padding: 25px 28px;
}
.help {
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 22px;
}
form {
  display: grid;
  gap: 18px;
  max-width: 480px;
}
label {
  display: block;
  font-size: 13px;
  color: #575d56;
}
input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #cbc9bf;
  background: white;
  border-radius: 7px;
  font: inherit;
  color: #242622;
  min-height: 43px;
}
input::placeholder {
  color: #979d92;
  font-size: 12px;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: #b95737;
}
label.checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.6;
}
label.checkbox input {
  flex-shrink: 0;
}
.button,
button {
  background: #242622;
  color: white;
  border: 1px solid #242622;
  padding: 12px 20px;
  cursor: pointer;
  font: inherit;
  border-radius: 7px;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  text-decoration: none;
}
.button:hover,
button:hover {
  background: #b95737;
}
.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #dfb7a8;
  outline-offset: 2px;
}
button:disabled,
input:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #b95737;
  text-underline-offset: 3px;
}
.secondary {
  background: #fff;
  color: #575d56;
  border-color: #c9c9bf;
}
.secondary:hover {
  background: #f3eee6;
}
.secondary-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: 12px;
}
.secondary-links a {
  text-decoration: none;
}
.secondary-links a:hover {
  text-decoration: underline;
}
footer {
  margin-top: 28px;
  font-size: 12px;
}
#status {
  color: #a3472e;
  font-size: 13px;
  white-space: pre-line;
  min-height: 0;
  margin: 18px 0;
}
#status:empty {
  display: none;
}
.admin-overview {
  padding: 16px 20px;
  margin: 26px 0;
  background: #eee8dc;
  border: 1px solid #d9d1c1;
  border-radius: 10px;
}
.admin-overview p {
  margin: 0 0 12px;
  color: #565b53;
  font-size: 13px;
}
.admin-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.selection-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  padding: 18px 22px;
  margin: 18px 0 20px;
  font-size: 18px;
}
.selection-entry span {
  font-size: 22px;
  line-height: 1;
}
.is-management .selection-entry {
  max-width: 230px;
  padding: 11px 15px;
  margin: 14px 0 16px;
  font-size: 14px;
}
.admin-links button,
.admin-links .button {
  font-size: 12px;
  padding: 9px 13px;
}
.create-card {
  padding: 23px;
  background: #fff;
  border: 1px solid #d8d5ca;
  border-radius: 10px;
}
article {
  border: 1px solid #d8d5ca;
  border-radius: 10px;
  background: #fff;
  margin: 22px 0;
  padding: 22px;
}
article form {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
article h3 {
  margin: 0;
  font-size: 16px;
}
article p {
  font-size: 12px;
  margin: 9px 0 18px;
}
article .checkbox {
  align-self: center;
}
article button {
  font-size: 12px;
}
@media (max-width: 600px) {
  main {
    padding: 22px 18px;
    margin: 16px auto;
  }
  .login-card {
    margin-top: 22px;
  }
  #loginPanel {
    padding: 22px;
  }
  .portal-heading > p {
    font-size: 13px;
  }
  .secondary-links {
    font-size: 11px;
  }
  .admin-links {
    gap: 12px;
  }
  article form {
    grid-template-columns: 1fr;
  }
  article {
    padding: 18px;
  }
  .create-card {
    padding: 19px;
  }
  footer {
    line-height: 1.8;
  }
}
[hidden] {
  display: none !important;
}
