:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #f1f5fa;
  color: #152339;
  --muted: #51627a;
  --stroke: #d2ddea;
  --blue: #154ab3;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }

.topbar { background: #fff; border-bottom: 1px solid #dce5ef; }
.topbar-inner {
  max-width: 1024px;
  min-height: 64px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 650;
}
.identity::before {
  content: "";
  display: block;
  width: 10px;
  height: 16px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  box-shadow: 4px 3px 0 -1px #d4e3ff;
}

main { max-width: 620px; margin: 8vh auto; padding: 0 20px 32px; }
.panel {
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  padding: clamp(22px, 6vw, 42px);
}
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.1rem); line-height: 1.25; }
.intro { color: var(--muted); line-height: 1.6; margin: 12px 0 28px; }
.fields { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; min-width: 0; }
label { font-size: .9375rem; font-weight: 650; }
select, input[type="password"], input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: #fff;
  color: #152339;
}
select, input[type="password"] { padding: 9px 12px; }
select {
  appearance: none;
  padding-right: 36px;
  background:
    linear-gradient(45deg, transparent 49%, #51627a 50%) right 18px center / 6px 6px no-repeat,
    linear-gradient(135deg, #51627a 50%, transparent 51%) right 12px center / 6px 6px no-repeat,
    #fff;
}
input[type="file"] { padding: 6px; background: #f6f8fc; }
::file-selector-button {
  padding: 7px 11px;
  margin-right: 9px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
  background: #fff;
  color: #152339;
  cursor: pointer;
}
.hint { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.primary, .text-button {
  border-radius: 8px;
  border: 0;
  font-weight: 650;
  cursor: pointer;
}
.primary { justify-self: start; padding: 12px 22px; color: #fff; background: var(--blue); }
.primary:hover { background: #103c93; }
.text-button { background: transparent; color: var(--blue); padding: 9px 12px; }
.text-button:hover { background: #edf3ff; }
:focus-visible { outline: 2px solid #3767ca; outline-offset: 3px; }
.message {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 3px solid currentColor;
  border-radius: 4px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.success { background: #eaf7ef; color: #165e38; }
.error { background: #fff0ee; color: #a42d22; }

@media (max-width: 480px) {
  main { margin-top: 28px; }
  .primary { width: 100%; }
}
