:root {
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
}

.document {
  width: min(816px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 700;
}

.image-wrap {
  width: 750px;
  max-width: 100%;
  margin: 84px auto 0;
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: contain;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f5f6f7;
}

.panel {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #dee0e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .08);
}

.panel h1 { font-size: 24px; }
.panel p { color: #646a73; line-height: 1.6; }
.panel label { display: block; margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.panel input[type="password"], .panel input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #c9cdd4;
  border-radius: 6px;
  font: inherit;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #3370ff;
  font: 600 15px/1 inherit;
  cursor: pointer;
  text-decoration: none;
}
.button.secondary { margin-left: 8px; color: #1f2329; background: #eff0f1; }
.preview { width: 100%; max-height: 420px; object-fit: contain; background: #f5f6f7; }
.message { padding: 10px 12px; border-radius: 6px; background: #e8f7ef; color: #17663a !important; }
.error { color: #d83931 !important; }

@media (max-width: 640px) {
  .document { width: calc(100% - 28px); padding-top: 34px; }
  h1 { font-size: 26px; }
  .image-wrap { margin-top: 42px; }
}
