/* Scoped to sign-in: workbench, dialogs and teaching data keep their own styles. */
.ierc-signin, .ierc-signin * { box-sizing: border-box; }
.ierc-signin.ierc-signin {
  width: 100%; max-width: none; min-height: 100vh; min-height: 100svh;
  margin: 0; padding: 100px 24px 40px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 25%, #e6f2ff 0, transparent 65%), #f6f9fd;
  color: #142746; font: 15px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.ierc-signin[hidden] { display: none !important; }
.ierc-signin a { text-decoration: none; color: #1968cf; }
.ierc-signin .signin-brand { position: absolute; top: 28px; left: 40px; display: flex; align-items: center; gap: 10px; color: #142746; font-size: 17px; font-weight: 700; }
.ierc-signin .signin-brand img { width: 40px; height: 40px; }
.ierc-signin .signin-card { width: 100%; max-width: 420px; margin: 0; padding: 34px 36px 28px; display: flex; flex-direction: column; gap: 0; border: 1px solid #e4ebf5; border-radius: 20px; background: #fff; box-shadow: 0 16px 56px #234c7d0c; }
.ierc-signin .signin-card h2 { margin: 0; padding: 0; text-align: center; font-size: 28px; line-height: 1.45; letter-spacing: .5px; color: #142746; }
.ierc-signin .signin-subtitle { margin: 5px 0 24px; text-align: center; font-size: 14px; color: #748399; }
.ierc-signin .signin-role { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.ierc-signin .signin-role label { margin: 0; white-space: nowrap; font-size: 13px; color: #748399; }
.ierc-signin .signin-role select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #dbe4f1; border-radius: 9px; color: #213856; background: #fbfcff; font: inherit; cursor: pointer; }
.ierc-signin .signin-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; color: #213856; font-size: 14px; font-weight: 500; }
.ierc-signin .signin-field input { width: 100%; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border: 1px solid #d5dfec; border-radius: 10px; background: #fff; color: #142746; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; outline: none; box-shadow: none; }
.ierc-signin .signin-field input::placeholder { color: #99a6b8; }
.ierc-signin .signin-password { position: relative; display: block; }
.ierc-signin .signin-password input { padding-right: 52px; }
.ierc-signin .signin-eye { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #607694; border-radius: 8px; cursor: pointer; }
.ierc-signin .signin-eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ierc-signin .signin-remember { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: -6px 0 12px; color: #607089; font-size: 13px; font-weight: 400; cursor: pointer; }
.ierc-signin .signin-remember input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #1d70ec; }
.ierc-signin .signin-submit { width: 100%; min-height: 50px; padding: 12px 8px; margin: 0; border: 1px solid #1b6de5; border-radius: 10px; background: #216fe7; color: #fff; font: 600 16px/1.5 "Microsoft YaHei", sans-serif; box-shadow: 0 5px 14px #216fe71a; cursor: pointer; }
.ierc-signin .signin-submit:hover { background: #165fce; }
.ierc-signin .signin-submit:disabled { opacity: .68; cursor: wait; }
.ierc-signin .signin-links { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 14px 0 0; }
.ierc-signin .signin-links a, .ierc-signin .signin-links button { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; background: none; border: 0; color: #216bd1; font: inherit; font-size: 14px; cursor: pointer; }
.ierc-signin .signin-help { margin: 16px 0 0; padding-top: 18px; border-top: 1px solid #e9eef5; color: #8997aa; text-align: center; font-size: 12px; }
.ierc-signin .signin-error, .ierc-signin .signin-status { display: block; margin: 10px 0 0; padding: 0; line-height: 1.6; overflow-wrap: anywhere; font-size: 13px; color: #b53d49; background: none; border: 0; }
.ierc-signin .signin-status { color: #637a98; }
.ierc-signin .signin-error:empty, .ierc-signin .signin-status:empty { display: none; }
.ierc-signin .signin-footer { margin-top: 24px; color: #97a4b5; font-size: 12px; }
.ierc-signin :is(input, select, button, a):focus-visible { outline: 3px solid #9fc6ff; outline-offset: 3px; }
body.signin-standalone { margin: 0; background: #f6f9fd; }
body.signin-supervisor > .supervisor-header { display: none; }
body.signin-supervisor:not(.signin-authenticated) > main { width: 100%; max-width: none; margin: 0; padding: 0; }
body.signin-supervisor.signin-authenticated > .supervisor-header { display: flex; }
@media (max-width: 600px) {
  .ierc-signin.ierc-signin { justify-content: flex-start; padding: max(30px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); background: linear-gradient(#f4f9ff, #fff 48%); }
  .ierc-signin .signin-brand { position: static; gap: 9px; margin: 0 0 30px; font-size: 16px; }
  .ierc-signin .signin-brand img { width: 36px; height: 36px; }
  .ierc-signin .signin-card { max-width: 380px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .ierc-signin .signin-card h2 { font-size: 28px; }
  .ierc-signin .signin-subtitle { margin-bottom: 24px; }
  .ierc-signin .signin-footer { margin-top: 30px; }
}
@media (max-height: 700px) and (max-width: 600px) {
  .ierc-signin.ierc-signin { padding-top: 18px; }
  .ierc-signin .signin-brand { margin-bottom: 18px; }
  .ierc-signin .signin-subtitle { margin-bottom: 16px; }
  .ierc-signin .signin-role { margin-bottom: 16px; }
  .ierc-signin .signin-field { margin-bottom: 14px; }
  .ierc-signin .signin-footer { margin-top: 18px; }
}
