/* Unified formal login layout for index.html and workspace loading placeholders. */
.h5-login-page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 15px 14px;
  padding: max(18px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right))
           max(14px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
  background: #f3f6fc;
  color: #162543;
  font: 15px/1.5 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.h5-login-card {
  display: grid;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  margin: auto;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgb(29 55 103 / 7%);
}

.h5-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  color: #162543;
  background: #edf2ff;
  font-size: 17px;
}

.h5-login-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  color: #2a54db;
}

.h5-login-logo svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h5-login-panel {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 19px;
  padding: 22px;
}

.h5-login-heading h1 { margin: 0 0 5px; font-size: 23px; line-height: 1.3; overflow-wrap: anywhere; }
.h5-login-heading p { margin: 0; color: #536884; font-size: 13px; }
.h5-login-fields { display: grid; gap: 12px; }
.h5-login-field { display: grid; gap: 5px; min-width: 0; }
.h5-login-field label { font-weight: 550; font-size: 14px; }
.h5-login-field .input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #ccd9eb;
  border-radius: 8px;
  background: #fff;
  color: #162543;
  font: inherit;
  font-size: 16px;
}
.h5-login-field .input:focus { border-color: #315ce6; outline: 2px solid #e4ebff; outline-offset: 1px; }
.h5-login-fields .btn-primary {
  min-height: 44px; border: 0; border-radius: 8px; background: #315ce6; color: #fff;
}
.h5-login-fields .btn-primary:hover { background: #224bc8; }
.h5-login-alternate {
  justify-self: center;
  min-height: 35px;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #294fc9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.h5-login-error { margin: 0; color: #a7292c; font-size: 13px; overflow-wrap: anywhere; }
.h5-login-alternate:focus-visible { outline: 2px solid #315ce6; outline-offset: 2px; }

.h5-site-footer {
  width: 100%;
  max-width: 860px;
  margin-top: 14px;
  padding: 6px 8px 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
  color: #64748b;
}
.h5-site-footer[hidden] {
  display: none;
}
.h5-site-footer-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.h5-site-footer a.h5-site-footer-item:hover {
  color: #294fc9;
  text-decoration: underline;
}
.h5-site-footer a.h5-site-footer-item:focus-visible {
  outline: 2px solid #315ce6;
  outline-offset: 2px;
  border-radius: 4px;
}
.h5-site-footer-police-icon {
  width: 15px;
  height: 15px;
  flex: none;
  display: inline-block;
}
.h5-site-legal-nav {
  width: 100%;
  max-width: 860px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  font-size: 12px;
  color: #64748b;
}
.h5-site-legal-nav a {
  color: inherit;
  text-decoration: none;
}
.h5-site-legal-nav a:hover {
  color: #294fc9;
  text-decoration: underline;
}
.h5-site-legal-nav + .h5-site-footer {
  margin-top: 4px;
}

@media (min-width: 900px) {
  .h5-login-page { padding-inline: 28px; }
  .h5-login-card { max-width: 830px; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .h5-login-card.h5-login-loading { grid-template-columns: minmax(0,1fr); max-width: 430px; }
  .h5-login-brand {
    min-height: 365px;
    padding: 35px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: #fff;
    background: radial-gradient(circle at 20% 15%, #5278ef, transparent 60%), #2a50d0;
    font-size: 30px;
  }
  .h5-login-logo { width: 55px; height: 55px; border-radius: 14px; }
  .h5-login-logo svg { width: 30px; height: 30px; }
  .h5-login-panel { padding: 31px 36px; }
}
