:root {
  --im-bg: #07111f;
  --im-panel: rgba(13, 24, 40, 0.9);
  --im-line: #20334d;
  --im-text: #e9f3ff;
  --im-muted: #8ba5c3;
  --im-cyan: #27e7d2;
  --im-blue: #3aa7ff;
  --im-danger: #ff5574;
}

* {
  box-sizing: border-box;
}

html,
body,
.login-pf,
.login-pf body {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(39, 231, 210, 0.16), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(58, 167, 255, 0.16), transparent 32%),
    var(--im-bg) !important;
  color: var(--im-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.login-pf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 18px;
}

#kc-header {
  width: min(440px, calc(100vw - 36px));
  margin: 0 0 22px;
}

#kc-header-wrapper {
  min-height: 52px;
  padding: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  color: transparent;
  text-align: left;
  letter-spacing: 0;
}

#kc-header-wrapper::before {
  content: "标";
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--im-cyan), var(--im-blue));
  color: #03101b;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(39, 231, 210, 0.18);
}

#kc-header-wrapper::after {
  content: "内部标的查询\A INTERNAL MARKET QUERY";
  white-space: pre;
  color: var(--im-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 12px 34px rgba(58, 167, 255, 0.2);
}

#kc-header-wrapper::after {
  letter-spacing: 0;
}

#kc-content,
#kc-content-wrapper,
#kc-form,
#kc-form-wrapper {
  width: 100%;
}

.card-pf {
  width: min(440px, calc(100vw - 36px));
  margin: 0;
  padding: 28px;
  border: 1px solid var(--im-line);
  border-radius: 8px;
  background: var(--im-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.card-pf::before {
  display: none;
}

#kc-page-title {
  margin: 0 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--im-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

#kc-page-title::before {
  content: "公司内部系统资产";
}

#kc-page-title::after {
  content: "Authorized Access";
  color: var(--im-cyan);
  font-weight: 800;
}

#kc-page-title {
  color: transparent;
}

#kc-page-title::before,
#kc-page-title::after {
  color: var(--im-muted);
}

#kc-page-title::after {
  color: var(--im-cyan);
}

.form-group {
  margin-bottom: 15px;
}

.control-label,
.pf-c-form__label,
label {
  display: block;
  margin: 0 0 8px;
  color: #b7cce4;
  font-size: 13px;
  font-weight: 500;
}

.form-control,
.pf-c-form-control,
input[type="text"],
input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #2a405f;
  border-radius: 8px;
  background: #081320;
  color: var(--im-text);
  outline: none;
  font-size: 15px;
  box-shadow: none;
}

.form-control:focus,
.pf-c-form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--im-cyan);
  box-shadow: 0 0 0 3px rgba(39, 231, 210, 0.12);
}

#kc-form-buttons {
  margin-top: 22px;
}

.btn-primary,
.pf-c-button.pf-m-primary,
input[type="submit"] {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--im-cyan), var(--im-blue));
  color: #03101b;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.pf-c-button.pf-m-primary:hover,
.pf-c-button.pf-m-primary:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: linear-gradient(135deg, #35f2df, #55b7ff);
  color: #03101b;
}

#kc-form-options,
#kc-info {
  margin-top: 16px;
  color: var(--im-muted);
  font-size: 12px;
}

#kc-form-options a,
#kc-info a,
a {
  color: #9fd4ff;
  text-decoration: none;
}

#kc-form-options a:hover,
#kc-info a:hover,
a:hover {
  color: var(--im-cyan);
}

.alert-error,
.pf-m-danger,
#input-error,
#input-error-username,
#input-error-password {
  color: var(--im-danger);
}

.alert {
  border-radius: 8px;
  border-color: rgba(255, 85, 116, 0.28);
  background: rgba(255, 85, 116, 0.08);
}

#kc-locale,
#kc-registration,
#kc-social-providers,
#kc-username,
#kc-attempted-username {
  color: var(--im-muted);
}

.login-pf a:hover {
  color: var(--im-cyan);
}

@media (max-width: 520px) {
  .login-pf-page {
    justify-content: flex-start;
    padding-top: 46px;
  }

  .card-pf {
    padding: 24px 18px;
  }

  #kc-header-wrapper::after {
    font-size: 21px;
  }
}
