:root {
  --geo-blue: #316bff;
  --geo-blue-deep: #2456df;
  --geo-cyan: #59d7ff;
  --geo-ink: #10182f;
  --geo-muted: #667085;
  --geo-line: #dce3ef;
  --geo-white: #ffffff;
}

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

body,
.login-pf,
.login-pf body,
.pf-v5-c-login {
  color: var(--geo-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  margin: 0;
  min-height: 100svh;
}

body {
  background: #091126;
}

.pf-v5-c-login {
  background:
    radial-gradient(circle at 8% 10%, rgba(74, 112, 255, 0.32), transparent 34%),
    radial-gradient(circle at 72% 88%, rgba(21, 161, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #071027 0%, #0b1635 48%, #091126 100%) !important;
  overflow: hidden;
  position: relative;
}

.pf-v5-c-login::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
  pointer-events: none;
  position: absolute;
}

.pf-v5-c-login::after {
  background: linear-gradient(135deg, rgba(49, 107, 255, 0.18), rgba(89, 215, 255, 0));
  border: 1px solid rgba(132, 176, 255, 0.13);
  border-radius: 999px;
  content: "";
  height: min(52vw, 740px);
  left: -14vw;
  pointer-events: none;
  position: absolute;
  top: -27vw;
  transform: rotate(-12deg);
  width: min(72vw, 1040px);
}

.pf-v5-c-login__container {
  align-items: center !important;
  box-sizing: border-box;
  display: grid !important;
  gap: clamp(56px, 7vw, 112px);
  grid-template-areas: "hero main" !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, 0.8fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  margin: 0 auto !important;
  max-width: 1440px !important;
  min-height: 100svh;
  padding: 72px clamp(32px, 6vw, 96px) 84px !important;
  position: relative;
  width: 100% !important;
  z-index: 2;
}

#kc-header,
.pf-v5-c-login__header {
  display: none !important;
}

.geo-hero {
  align-self: stretch;
  color: var(--geo-white);
  display: flex;
  flex-direction: column;
  grid-area: hero;
  justify-content: space-between;
  min-height: 610px;
  padding: 10px 0;
}

.geo-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.geo-brand__mark {
  align-items: center;
  background: var(--geo-white);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(10, 17, 43, 0.34);
  display: flex;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.geo-brand__mark img {
  display: block;
  height: 50px;
  object-fit: cover;
  width: 50px;
}

.geo-brand__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo-brand__copy strong {
  font-size: 21px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.geo-brand__copy small {
  color: rgba(221, 232, 255, 0.64);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.geo-hero__content {
  margin: clamp(48px, 8vh, 92px) 0;
  max-width: 760px;
}

.geo-hero__eyebrow {
  align-items: center;
  color: #c8d8ff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: 0.08em;
}

.geo-hero__eyebrow::before {
  background: linear-gradient(180deg, var(--geo-cyan), var(--geo-blue));
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(89, 215, 255, 0.75);
  content: "";
  height: 8px;
  width: 8px;
}

.geo-hero h1 {
  color: var(--geo-white);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 24px 0 24px;
  max-width: 740px;
  text-wrap: balance;
}

.geo-hero__description {
  color: rgba(226, 234, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
  max-width: 620px;
}

.geo-proof-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  max-width: 720px;
}

.geo-proof {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(161, 190, 255, 0.14);
  border-radius: 15px;
  display: flex;
  gap: 11px;
  min-height: 92px;
  padding: 16px;
}

.geo-proof__marker {
  color: #7fa7ff;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.geo-proof__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geo-proof__copy strong {
  color: #f7f9ff;
  font-size: 14px;
  font-weight: 680;
}

.geo-proof__copy small {
  color: rgba(214, 225, 249, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.geo-workflow {
  align-items: center;
  color: rgba(220, 230, 251, 0.58);
  display: flex;
  font-size: 13px;
  gap: 12px;
  letter-spacing: 0.06em;
}

.geo-workflow i {
  color: rgba(111, 151, 242, 0.55);
  font-style: normal;
}

.card-pf,
.pf-v5-c-login__main {
  align-self: center;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.975) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 24px !important;
  box-shadow:
    0 42px 100px rgba(0, 6, 25, 0.42),
    0 8px 28px rgba(3, 12, 38, 0.18) !important;
  justify-self: end;
  grid-area: main !important;
  max-width: 480px !important;
  overflow: hidden;
  position: relative;
  width: 100% !important;
}

.pf-v5-c-login__main::before {
  background: linear-gradient(90deg, var(--geo-blue), var(--geo-cyan));
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.pf-v5-c-login__main-header {
  padding: 48px 46px 18px !important;
}

.pf-v5-c-login__main-body {
  padding: 0 46px 48px !important;
}

.card-pf {
  padding-left: 46px !important;
  padding-right: 46px !important;
}

#kc-page-title,
.pf-v5-c-title {
  color: var(--geo-ink) !important;
  font-size: 32px !important;
  font-weight: 760 !important;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0 !important;
}

.geo-login-subtitle {
  color: var(--geo-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 0;
}

.pf-v5-c-form {
  gap: 22px !important;
}

label,
.pf-v5-c-form__label-text,
input,
button,
a,
.pf-v5-c-button,
.pf-v5-c-form-control {
  font-size: 14px !important;
}

.pf-v5-c-form__label-text {
  color: #25314d;
  font-weight: 650;
}

input,
.pf-v5-c-form-control {
  background: #f8faff !important;
  border-color: var(--geo-line) !important;
  border-radius: 11px !important;
  color: var(--geo-ink) !important;
  min-height: 50px;
}

input::placeholder {
  color: #98a2b3 !important;
}

input:focus,
.pf-v5-c-form-control:focus-within {
  background: var(--geo-white) !important;
  border-color: var(--geo-blue) !important;
  box-shadow: 0 0 0 4px rgba(49, 107, 255, 0.12) !important;
}

.pf-v5-c-input-group .pf-v5-c-form-control {
  border-radius: 11px 0 0 11px !important;
}

.pf-v5-c-button.pf-m-control {
  background: #f8faff !important;
  border-color: var(--geo-line) !important;
  border-radius: 0 11px 11px 0 !important;
  min-height: 50px;
}

#kc-login,
.pf-v5-c-button.pf-m-primary {
  background: linear-gradient(135deg, #356fff 0%, #2857df 100%) !important;
  border: 0 !important;
  border-radius: 11px !important;
  box-shadow: 0 12px 28px rgba(43, 91, 225, 0.22);
  color: var(--geo-white) !important;
  font-weight: 700 !important;
  min-height: 50px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

#kc-login:hover,
.pf-v5-c-button.pf-m-primary:hover {
  box-shadow: 0 16px 34px rgba(43, 91, 225, 0.3);
  transform: translateY(-1px);
}

#kc-login:active,
.pf-v5-c-button.pf-m-primary:active {
  transform: translateY(0);
}

a {
  color: var(--geo-blue-deep) !important;
  font-weight: 550;
}

a:hover,
a:focus-visible {
  color: #173eae !important;
}

#kc-info,
.pf-v5-c-login__main-footer-band {
  background: #f5f7fb !important;
}

.geo-compliance-footer {
  align-items: center;
  bottom: 20px;
  color: rgba(201, 215, 244, 0.48);
  display: flex;
  font-size: 12px;
  gap: 8px;
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 20;
}

.geo-compliance-footer i {
  font-style: normal;
}

.geo-compliance-footer a {
  color: rgba(220, 230, 252, 0.7) !important;
  font-size: 12px !important;
  font-weight: 500;
  text-decoration: none;
}

.geo-compliance-footer a:hover,
.geo-compliance-footer a:focus-visible {
  color: var(--geo-white) !important;
  outline: none;
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .pf-v5-c-login__container {
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr) !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
  }

  .geo-hero h1 {
    font-size: clamp(42px, 5.3vw, 58px);
  }

  .geo-proof-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .geo-proof {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .pf-v5-c-login {
    overflow: auto;
  }

  .pf-v5-c-login__container {
    display: block !important;
    grid-template-areas: none !important;
    min-height: 100svh;
    padding: 34px 24px 86px !important;
  }

  .geo-hero {
    min-height: auto;
    padding: 0;
  }

  .geo-hero__content {
    margin: 52px 0 32px;
    max-width: 620px;
  }

  .geo-hero h1 {
    font-size: clamp(38px, 8vw, 52px);
    max-width: 620px;
  }

  .geo-proof-grid {
    display: none;
  }

  .geo-workflow {
    display: none;
  }

  .card-pf,
  .pf-v5-c-login__main {
    justify-self: auto;
    margin: 0 auto;
    max-width: 560px !important;
  }

  .geo-compliance-footer {
    bottom: auto;
    justify-content: center;
    padding: 18px 16px 24px;
    position: static;
    transform: none;
  }
}

@media (max-width: 520px) {
  .pf-v5-c-login__container {
    padding: 24px 16px 76px !important;
  }

  .geo-brand__mark {
    border-radius: 12px;
    height: 46px;
    width: 46px;
  }

  .geo-brand__mark img {
    height: 43px;
    width: 43px;
  }

  .geo-brand__copy strong {
    font-size: 18px;
  }

  .geo-hero__content {
    margin: 40px 0 26px;
  }

  .geo-hero h1 {
    font-size: 36px;
    letter-spacing: -0.045em;
    margin: 18px 0;
  }

  .geo-hero__description {
    font-size: 14px;
    line-height: 1.7;
  }

  .pf-v5-c-login__main-header {
    padding: 38px 26px 16px !important;
  }

  .pf-v5-c-login__main-body {
    padding: 0 26px 34px !important;
  }

  .card-pf {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }

  #kc-page-title,
  .pf-v5-c-title {
    font-size: 28px !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
