:root {
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color-scheme: light;
  color: #142738;
  background: #f1f5f7;
  --blue: #154f74;
  --border: #d2dfe6;
  --muted: #4d6273;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 750;
}

.portal-login {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 22% 16%, #deebf1, transparent 64%);
}

.login-card {
  width: min(100%, 430px);
  padding: clamp(24px, 7vw, 40px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 16px 50px #14344a12;
}

.login-card h1 { margin: 26px 0 8px; font-size: 28px; line-height: 1.2; }
.login-intro, .login-note { margin: 0; color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 9px; margin: 24px 0 16px; }
.login-card label { font-size: 14px; font-weight: 650; }
.login-card input, .login-card button {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.login-card input { margin-bottom: 7px; color: inherit; background: #fbfdfe; }
.login-card button { margin-top: 5px; color: white; background: var(--blue); font-weight: 650; cursor: pointer; }
.login-card button:disabled { opacity: .65; cursor: wait; }
.login-card :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.login-status { margin: 0; color: #992c35; font-size: 14px; line-height: 1.5; }
.login-note { font-size: 13px; }

.portal-rooms .masthead { color: #142738; background: white; border-bottom: 1px solid var(--border); }
.portal-rooms .masthead a { color: inherit; }
.portal-rooms .masthead .wrap { min-height: 68px; }
.portal-rooms #rooms-logout { min-height: 40px; }
.portal-rooms .page-heading { margin-bottom: 24px; }
.portal-rooms #list-status:empty { display: none; }
.portal-rooms #list-status { margin-top: 8px; }

@media (max-width: 380px) {
  .portal-rooms #search { flex-wrap: wrap; }
  .portal-rooms #search input { flex-basis: 100%; }
}
