:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  --ink: #14233a;
  --muted: #46576b;
  --indigo: #283680;
  color: var(--ink);
  background: #edf1f5;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 4rem);
}
.account-shell { width: min(100%, 64rem); min-width: 0; }
.login-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #cbd3dd;
  border-radius: 1.05rem;
  overflow: hidden;
  box-shadow: 0 28px 72px -38px #17345363, 0 2px 7px #1933500c;
}
.laser-photo { position: relative; min-height: 30rem; overflow: hidden; background: #122c46; }
.laser-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 52%; }
.account-panel { align-self: center; min-width: 0; padding: clamp(2.3rem, 4vw, 3.5rem); }
.panel-content { max-width: 25rem; margin: auto; min-width: 0; }
.account-header { margin-bottom: 1.65rem; }
.account-brand { display: block; width: 6.1rem; height: auto; }
h1 { margin: 1.8rem 0 0; font-size: clamp(2rem, 3.3vw, 2.65rem); font-weight: 650; line-height: 1.1; letter-spacing: -.038em; overflow-wrap: anywhere; }
p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; margin: 0 0 1rem; overflow-wrap: anywhere; }
.intro { margin-bottom: 1.4rem; }
form { display: grid; gap: 1.05rem; }
label { display: grid; gap: .42rem; font-size: 1rem; font-weight: 620; line-height: 1.4; }
input, select, button { font: inherit; border-radius: .48rem; min-height: 3.05rem; }
input, select {
  display: block; width: 100%; min-width: 0; margin: 0; padding: .7rem .85rem; font-size: 1.0625rem;
  line-height: 1.4; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #8d9caf;
}
input:hover, select:hover { border-color: #5c6c83; }
:focus-visible { outline: 3px solid #526bc1; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline: 2px solid #647ac2; outline-offset: 1px; border-color: var(--indigo); }
button {
  width: 100%; text-align: left; position: relative; cursor: pointer;
  background: var(--indigo); color: #fff; border: 1px solid transparent;
  font-size: 1.0625rem; font-weight: 630; padding: .75rem 2.8rem .75rem 1.05rem;
}
button::after {
  content: ""; position: absolute; right: 1.16rem; top: calc(50% - .24rem);
  width: .48rem; height: .48rem; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg);
}
button:hover { background: #1d2969; }
button:disabled { opacity: .65; cursor: default; }
details { border-bottom: 1px solid #dbe1e8; }
summary { display: flex; gap: .65rem; align-items: center; min-height: 2.85rem; list-style: none; cursor: pointer; color: var(--indigo); font-size: 1rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 1.15rem/1 monospace; }
details[open] > summary::before { content: "−"; }
summary:hover, a:hover { text-decoration: underline; }
details p { font-size: .98rem; margin: .2rem 0 .85rem; }
details > :last-child:not(summary) { margin-bottom: 1rem; }
.panel-content > details, .panel-content > a, .foot { margin-top: 1.05rem; }
a { display: inline-block; color: var(--indigo); font-size: 1rem; text-underline-offset: .18em; }
.error { background: #fff2ed; color: #8a2e16; border-left: 3px solid #bb512d; padding: .7rem .85rem; border-radius: .25rem; }
#generated-password { overflow-wrap: anywhere; }
[hidden], input[type="hidden"] { display: none; }
@media (max-width: 740px) {
  body { padding: clamp(.7rem, 3vw, 1.5rem); }
  .account-shell { max-width: 30rem; }
  .login-frame { grid-template-columns: minmax(0, 1fr); border-radius: .8rem; }
  .laser-photo { height: clamp(7.75rem, 36vw, 10rem); min-height: 0; }
  .laser-photo img { object-position: 50% 53%; }
  .account-panel { padding: 1.45rem clamp(1.1rem, 5vw, 2rem) 1.6rem; }
  .account-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
  .account-brand { flex: none; width: 4.6rem; }
  h1 { margin: 0; font-size: clamp(1.6rem, 6.2vw, 2rem); }
}
@media (forced-colors: active) {
  button { border-color: ButtonText; }
}

.admin-identity { margin: -.25rem 0 1.4rem; }
.admin-identity strong { color: var(--ink); }
.admin-identity span, .admin-tools span { display: block; overflow-wrap: anywhere; }
.admin-tools { display: grid; gap: .65rem; }
.admin-tools a { display: block; position: relative; padding: .8rem 2.1rem .8rem .9rem; border: 1px solid #cbd3dd; border-radius: .55rem; text-decoration: none; }
.admin-tools a::after { content: ''; position: absolute; top: calc(50% - .22rem); right: .95rem; width: .45rem; height: .45rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.admin-tools a:hover { border-color: var(--indigo); background: #f4f6fc; }
.admin-tools strong { display: block; }
.admin-tools span { margin-top: .2rem; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.admin-account-links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 1.4rem; }
