:root {
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f4f7fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 106, 255, 0.09), transparent 26rem),
    radial-gradient(circle at 82% 82%, rgba(28, 201, 154, 0.08), transparent 25rem),
    #f6f8fc;
}

.background-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.65;
}

.orb-one {
  top: -11rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(21, 94, 239, 0.18);
  box-shadow: inset 0 0 8rem rgba(21, 94, 239, 0.08);
}

.orb-two {
  bottom: -14rem;
  left: -9rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(18, 183, 145, 0.18);
  box-shadow: inset 0 0 10rem rgba(18, 183, 145, 0.07);
}

.shell {
  display: flex;
  width: min(100% - 2rem, 640px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  margin: 0 auto 1.5rem;
  align-items: center;
  gap: 0.65rem;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.62rem;
  color: white;
  background: linear-gradient(145deg, #3378ff, #155eef);
  box-shadow: 0 7px 20px rgba(21, 94, 239, 0.22);
}

.brand-mark svg {
  width: 1rem;
  fill: currentColor;
}

.auth-card {
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 1px solid rgba(211, 219, 232, 0.92);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 26px 65px rgba(20, 39, 74, 0.1),
    0 2px 8px rgba(20, 39, 74, 0.04);
  backdrop-filter: blur(14px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #155eef;
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 99px;
  background: #12b76a;
  box-shadow: 0 0 0 0.25rem rgba(18, 183, 106, 0.12);
}

h1 {
  max-width: 12ch;
  margin: 1rem 0 0.9rem;
  color: #101828;
  font-size: clamp(2rem, 7vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: #667085;
  font-size: 1rem;
  line-height: 1.75;
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: white;
  text-decoration: none;
  background: linear-gradient(115deg, #155eef, #3378ff);
  box-shadow: 0 12px 26px rgba(21, 94, 239, 0.24);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(21, 94, 239, 0.3);
}

.feishu-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  color: #155eef;
  background: white;
  font-size: 0.84rem;
  font-weight: 850;
}

.arrow {
  margin-left: auto;
  font-size: 1.25rem;
}

.privacy-note {
  margin: 1rem 0 0;
  color: #98a2b3;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.loading {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.75rem;
  color: #667085;
}

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #d0d5dd;
  border-top-color: #155eef;
  border-radius: 99px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #fecdca;
  border-radius: 0.75rem;
  color: #b42318;
  background: #fef3f2;
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-header {
  display: flex;
  margin: 1.5rem 0 1.75rem;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  border: 3px solid white;
  border-radius: 1.15rem;
  object-fit: cover;
  box-shadow: 0 5px 18px rgba(20, 39, 74, 0.14);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #7f56d9, #444ce7);
  font-size: 1.35rem;
  font-weight: 800;
}

.status-line {
  color: #027a48;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.3rem;
  border-radius: 99px;
  background: #12b76a;
}

h2 {
  margin: 0.35rem 0 0.2rem;
  color: #101828;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.organization {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
}

.identity-grid {
  display: grid;
  margin: 0 0 1.5rem;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  overflow: hidden;
}

.identity-grid > div {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
}

.identity-grid > div:nth-child(2n) {
  border-right: 0;
}

.identity-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

dt {
  margin-bottom: 0.35rem;
  color: #98a2b3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 500;
}

.secondary-button {
  border: 1px solid #d0d5dd;
  color: #344054;
  background: white;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #f9fafb;
}

footer {
  display: flex;
  margin-top: 1.3rem;
  justify-content: center;
  gap: 0.45rem;
  color: #98a2b3;
  font-size: 0.72rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 1.2rem, 640px);
    padding-top: 1rem;
  }

  .auth-card {
    border-radius: 1.25rem;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-grid > div,
  .identity-grid > div:nth-child(2n),
  .identity-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e4e7ec;
  }

  .identity-grid > div:last-child {
    border-bottom: 0;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
