:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #e4e9f0;
  color: #1f2329;
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 16px;
}

.login-card {
  display: grid;
  width: min(100%, 372px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 44px rgb(20 40 80 / 10%);
}

.mascot-panel {
  display: none;
  background: #eef1f5;
}

.mascot-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 28px;
}

.login-content {
  width: 100%;
  max-width: 300px;
}

.fbif-logo {
  display: block;
  width: auto;
  height: 46px;
  margin: 0 auto;
  user-select: none;
}

.product-name {
  margin: 12px 0 32px;
  color: #8a8f99;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.feishu-login {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #e6e8ec;
  border-radius: 999px;
  background: #fff;
  color: #1f2329;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.feishu-login:hover {
  border-color: #cdd2d9;
  background: #fafbfc;
}

.feishu-login:focus-visible {
  outline: 3px solid rgb(51 112 255 / 24%);
  outline-offset: 3px;
}

.feishu-login svg {
  flex: 0 0 auto;
}

.login-error {
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid #f0d4d2;
  border-radius: 8px;
  background: #fdf2f1;
  color: #b83430;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 640px) {
  .login-shell {
    padding: 24px;
  }

  .login-panel {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .login-card {
    width: min(100%, 820px);
    grid-template-columns: 2fr 3fr;
  }

  .mascot-panel {
    display: block;
  }

  .login-panel {
    padding-block: 96px;
  }
}
