* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: #263241;
  background: #f5f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: #1f6fb7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid #e1e7f0;
  background: #fff;
}

.topbar .site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 18px;
}

.brand {
  color: #18283c;
  font-weight: 700;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #667085;
  font-size: 14px;
}

.auth-user {
  max-width: 240px;
  overflow: hidden;
  color: #263241;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-button {
  border: 0;
  padding: 0;
  color: #667085;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: #1f6fb7;
  text-decoration: underline;
}

.page {
  padding: 42px 0 64px;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.copy,
.card {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
}

.copy {
  min-height: 280px;
  padding: 34px;
}

.copy p {
  margin: 0 0 8px;
  color: #3370ff;
  font-weight: 700;
}

.copy h1 {
  margin: 0;
  color: #18283c;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.copy .scope {
  margin-top: 14px;
  color: #667085;
}

.card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.primary-button,
.feishu-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: #3370ff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button:hover,
.feishu-login-button:hover {
  color: #fff;
  background: #1f5dff;
  text-decoration: none;
}

.primary-button:disabled {
  background: #b7c2d4;
  cursor: wait;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 0 12px;
  color: #263241;
  font: inherit;
}

input:focus {
  border-color: #3370ff;
  outline: 3px solid rgba(51, 112, 255, 0.14);
}

.message {
  min-height: 22px;
  margin: 0;
  color: #667085;
  overflow-wrap: anywhere;
}

.message a {
  font-weight: 700;
}

@media (max-width: 760px) {
  .topbar .site-shell,
  .panel {
    grid-template-columns: 1fr;
  }

  .topbar .site-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .copy,
  .card {
    padding: 20px;
  }

  .copy {
    min-height: 0;
  }

  .copy h1 {
    font-size: 24px;
  }
}
