:root {
  --xm-primary: #155eef;
  --xm-primary-dark: #0b3b91;
  --xm-ink: #172033;
  --xm-muted: #667085;
  --xm-border: #dfe5ef;
  --xm-surface: #ffffff;
  --xm-success: #067647;
  --xm-danger: #b42318;
}

html,
body {
  min-height: 100%;
}

body.auth-page {
  box-sizing: border-box;
  margin: 0;
  padding: 48px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  color: var(--xm-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(54, 169, 225, .13), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(21, 94, 239, .14), transparent 34%),
    linear-gradient(145deg, #050b1c 0%, #0b1739 52%, #10295a 100%);
}

body.auth-page::before,
body.auth-page::after {
  content: "";
  position: fixed;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  pointer-events: none;
}

body.auth-page::before {
  width: 420px;
  height: 420px;
  left: -210px;
  top: -180px;
}

body.auth-page::after {
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: -280px;
}

.auth-page #loginbox {
  width: min(100%, 440px);
  margin: 0;
  overflow: visible !important;
  text-align: left;
}

.auth-brand {
  margin: 0 0 22px;
  text-align: center;
}

.auth-brand img {
  display: inline-block;
  width: auto;
  max-width: 158px;
  max-height: 38px;
  filter: none;
}

.auth-page #loginbox form {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(4, 20, 46, .3);
}

.auth-page #loginbox .normal_text {
  padding: 30px 32px 18px;
  border: 0;
  color: var(--xm-ink);
  background: var(--xm-surface);
  text-align: left;
}

.auth-page #loginbox .normal_text .auth-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--xm-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-page #loginbox .normal_text h1 {
  margin: 0 0 8px;
  color: var(--xm-ink);
  font-size: 27px;
  line-height: 1.2;
}

.auth-page #loginbox .normal_text p {
  margin: 0;
  color: var(--xm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-page #loginbox .control-group {
  margin: 0;
  padding: 10px 32px;
  border: 0;
}

.auth-page #loginbox .controls {
  padding: 0;
}

.auth-page #loginbox .main_input_box {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  text-align: left;
}

.auth-page #loginbox .main_input_box .add-on {
  box-sizing: border-box;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xm-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #667085;
  background: #f7f9fc;
}

.auth-page #loginbox .main_input_box input {
  box-sizing: border-box;
  width: calc(100% - 48px);
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--xm-border);
  border-radius: 0 10px 10px 0;
  color: var(--xm-ink);
  font-size: 15px;
  background: #fff;
  box-shadow: none;
}

.auth-page #loginbox .main_input_box input:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
}

.auth-page #loginbox .main_input_box:focus-within .add-on {
  border-color: #84adff;
  color: var(--xm-primary);
}

.auth-page .captcha-wrap {
  overflow-x: auto;
  padding-top: 5px;
}

.auth-page .g-recaptcha {
  margin: 0 !important;
  transform-origin: left top;
}

.auth-page #loginbox .form-actions {
  box-sizing: border-box;
  min-height: 76px;
  margin: 12px 0 0;
  padding: 16px 32px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: #fff;
}

.auth-page #loginbox .form-actions .pull-left,
.auth-page #loginbox .form-actions .pull-right {
  float: none;
  margin: 0;
}

.auth-page .btn {
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-shadow: none;
  box-shadow: none !important;
  text-shadow: none !important;
}

.auth-page .btn-info {
  color: #fff;
  border-color: var(--xm-primary);
  background: var(--xm-primary);
}

.auth-page .btn-info:hover,
.auth-page .btn-info:focus {
  background: #0e4bd2;
}

.auth-page .btn-info[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.auth-page .btn-inverse {
  color: #344054;
  border-color: var(--xm-border);
  background: #fff;
}

.auth-page #loginbox > .alert {
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 13px 42px 13px 16px !important;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 11px;
  color: #fff;
  background: rgba(180, 35, 24, .92);
  box-shadow: 0 12px 30px rgba(4, 20, 46, .16);
}

.auth-page #loginbox form .alert {
  margin: 12px 32px;
  border-radius: 10px;
}

.auth-page #loginbox form .alert-success {
  color: var(--xm-success);
  border-color: #abefc6;
  background: #ecfdf3;
}

.auth-page .auth-support {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  body.auth-page {
    padding: 28px 14px;
    align-items: flex-start;
  }

  .auth-page #loginbox .normal_text {
    padding: 25px 22px 15px;
  }

  .auth-page #loginbox .control-group {
    padding: 9px 22px;
  }

  .auth-page #loginbox .form-actions {
    padding: 14px 22px 22px;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-page #loginbox .form-actions .btn {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }

  .auth-page .g-recaptcha {
    transform: scale(.88);
  }
}

/* Enterprise login composition */
body.auth-login-page {
  min-height: 100vh;
  padding: 0;
  display: block;
  color: #172033;
  background: #f4f7fb;
}

body.auth-login-page::before,
body.auth-login-page::after { display: none; }

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, 42%) minmax(0, 58%);
}

.auth-showcase {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding: 42px clamp(34px, 5vw, 76px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(65, 165, 255, .20), transparent 29%),
    radial-gradient(circle at 18% 88%, rgba(21, 94, 239, .22), transparent 30%),
    #0b1739;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom right, #000, transparent 70%);
}

.auth-showcase-top,
.auth-showcase-content,
.auth-showcase-footer {
  position: relative;
  z-index: 1;
}

.auth-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-showcase-logo {
  width: auto;
  max-width: 134px;
  max-height: 32px;
  display: block;
}

.auth-showcase-tag {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.05);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.auth-showcase-content {
  width: min(100%, 520px);
  margin: auto 0;
  padding: 64px 0;
}

.auth-showcase-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #78c8ff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-showcase-content h2 {
  max-width: 490px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.auth-showcase-content > p {
  max-width: 465px;
  margin: 0;
  color: rgba(226, 234, 247, .76);
  font-size: 14px;
  line-height: 1.65;
}

.auth-feature-list {
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(226, 234, 247, .68);
  font-size: 11px;
  line-height: 1.45;
}

.auth-feature-list li > i {
  box-sizing: border-box;
  width: 21px;
  height: 21px;
  padding: 4px;
  flex: 0 0 21px;
  border: 1px solid rgba(82, 182, 255, .35);
  border-radius: 50%;
  color: #78c8ff;
  background-color: rgba(82, 182, 255, .08);
}

.auth-feature-list strong {
  margin-bottom: 2px;
  display: block;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.auth-showcase-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(226, 234, 247, .52);
  font-size: 10px;
}

.auth-showcase-footer > span {
  width: 22px;
  height: 1px;
  background: #52b6ff;
}

.auth-login-panel {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 42px clamp(36px, 7vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.auth-login-page #loginbox {
  width: min(100%, 390px);
}

.auth-login-page .auth-brand { display: none; }

.auth-login-page #loginbox form {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-login-page #loginbox .normal_text {
  margin-bottom: 25px;
  padding: 0;
  background: transparent;
}

.auth-login-page #loginbox .normal_text .auth-kicker {
  margin-bottom: 9px;
  color: #155eef;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}

.auth-login-page #loginbox .normal_text h1 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.018em;
}

.auth-login-page #loginbox .normal_text p {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.55;
}

.auth-login-page #loginbox .control-group {
  margin: 0 0 14px;
  padding: 0;
}

.auth-field-label {
  margin: 0 0 6px;
  display: block;
  color: #344054;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.auth-login-page #loginbox .main_input_box .add-on {
  width: 43px;
  min-width: 43px;
  height: 44px;
  border-radius: 8px 0 0 8px;
  color: #667085;
  background: #f8fafc;
}

.auth-login-page #loginbox .main_input_box input {
  width: calc(100% - 43px);
  height: 44px;
  padding: 0 12px;
  border-radius: 0 8px 8px 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 12px;
}

.auth-login-page #loginbox .main_input_box input:focus {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .09);
}

.auth-login-page .captcha-wrap {
  box-sizing: border-box;
  min-height: 78px;
  padding: 9px 10px;
  overflow: hidden;
  align-items: center !important;
  border: 1px solid #dfe5ef;
  border-radius: 9px;
  background: #fff;
}

.auth-login-page #loginbox .form-actions {
  min-height: 0;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.auth-login-page #loginbox .form-actions .pull-right {
  width: 100%;
  order: 1;
}

.auth-login-page #loginbox .form-actions .pull-left {
  order: 2;
  text-align: center;
}

.auth-login-page #loginbox .form-actions .btn-info {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
}

.auth-login-page #loginbox .form-actions .btn-inverse {
  padding: 5px 8px;
  border: 0;
  color: #175cd3;
  background: transparent;
  font-size: 10px;
}

.auth-login-page #loginbox .form-actions .btn-inverse:hover,
.auth-login-page #loginbox .form-actions .btn-inverse:focus {
  color: #0b3b91;
  text-decoration: underline;
}

.auth-login-page .auth-support {
  margin-top: 20px;
  color: #98a2b3;
  font-size: 9px;
  letter-spacing: .02em;
}

.auth-login-page .auth-support i { margin-right: 4px; opacity: .75; }

.auth-login-page #loginbox > .alert {
  margin-bottom: 20px;
  padding: 11px 38px 11px 13px !important;
  border-color: #fecdca;
  color: #b42318;
  background: #fef3f2;
  box-shadow: none;
  font-size: 10px;
}

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: minmax(315px, 39%) minmax(0, 61%); }
  .auth-showcase { padding-right: 32px; padding-left: 32px; }
  .auth-showcase-tag { display: none; }
  .auth-feature-list { margin-top: 28px; }
}

@media (max-width: 760px) {
  .auth-shell { display: block; min-height: 100vh; }
  .auth-showcase { display: none; }
  .auth-login-panel { min-height: 100vh; padding: 32px 20px; background: #f8fafc; }
  .auth-login-page .auth-brand { margin-bottom: 30px; display: block; text-align: left; }
  .auth-login-page .auth-brand img { max-width: 130px; max-height: 31px; }
}

@media (max-width: 390px) {
  .auth-login-page .g-recaptcha { transform: scale(.83); }
  .auth-login-page .captcha-wrap { min-height: 70px; }
}
