:root {
  --auth-ink: #171a1f;
  --auth-graphite: #282d33;
  --auth-muted: #69717d;
  --auth-line: #dfe3e8;
  --auth-canvas: #f5f6f7;
  --auth-white: #ffffff;
  --auth-primary: #2f6bff;
  --auth-primary-dark: #2559d6;
  --auth-success: #168a52;
  --auth-danger: #c43238;
  --auth-font-display: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif;
  --auth-font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --auth-font-utility: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body.auth-login-page {
  margin: 0;
  color: var(--auth-ink);
  background: var(--auth-canvas);
  font-family: var(--auth-font-body);
  letter-spacing: 0;
}

[v-cloak] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

.auth-app,
.auth-layout {
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1.34fr) minmax(440px, .66fr);
  background: var(--auth-white);
}

.auth-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 48px 54px 0;
  color: var(--auth-white);
  background-color: #29333d;
  background-image: url("/images/login-console-hero-v2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.auth-visual::before {
  inset: 0;
  background: rgba(10, 14, 19, .46);
}

.auth-visual::after {
  inset: 0 auto 0 0;
  width: 64%;
  background: rgba(12, 16, 22, .32);
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.auth-brand-symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--auth-white);
  background: var(--auth-primary);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.auth-brand-symbol svg {
  width: 25px;
  height: 25px;
  stroke-width: 2;
}

.auth-brand-copy strong,
.auth-brand-copy small {
  display: block;
}

.auth-brand-copy strong {
  font-family: var(--auth-font-display);
  font-size: 18px;
  font-weight: 700;
}

.auth-brand-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--auth-font-utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-hero-copy {
  align-self: center;
  max-width: 590px;
  padding: 40px 0;
}

.auth-eyebrow,
.auth-access-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.auth-eyebrow {
  color: rgba(255, 255, 255, .76);
}

.auth-eyebrow span,
.auth-access-label span {
  width: 28px;
  height: 3px;
  background: var(--auth-primary);
}

.auth-hero-copy h1 {
  max-width: 580px;
  margin: 22px 0 18px;
  color: var(--auth-white);
  font-family: var(--auth-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.auth-hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.8;
}

.auth-capability-grid {
  width: calc(100% + 108px);
  min-height: 128px;
  margin: 0 -54px;
  padding: 12px 54px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: rgba(12, 16, 22, .78);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.auth-capability-grid li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 11px;
  background: rgba(18, 24, 32, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
}

.auth-capability-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #dce7ff;
  background: rgba(47, 107, 255, .24);
  border: 1px solid rgba(117, 157, 255, .42);
  border-radius: 4px;
}

.auth-capability-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.auth-capability-copy {
  min-width: 0;
}

.auth-capability-copy strong,
.auth-capability-copy small {
  display: block;
}

.auth-capability-copy strong {
  color: var(--auth-white);
  font-size: 13px;
  font-weight: 700;
}

.auth-capability-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.auth-access {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 44px 56px 30px;
  background: var(--auth-white);
  border-left: 4px solid var(--auth-primary);
}

.auth-access-inner {
  width: min(410px, 100%);
  margin: auto;
}

.auth-access-label {
  margin-bottom: 24px;
  color: var(--auth-muted);
}

.auth-access-label span {
  width: 22px;
  height: 2px;
}

.auth-access-head h2 {
  margin: 0;
  color: var(--auth-ink);
  font-family: var(--auth-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-access-head p {
  margin: 13px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.75;
}

.auth-alert {
  margin-top: 22px;
  border-radius: 5px !important;
}

.auth-alert.el-alert--error.is-light {
  color: var(--auth-danger);
  background: #fff4f4;
  border: 1px solid #f2c7c9;
}

.auth-alert.el-alert--success.is-light {
  color: var(--auth-success);
  background: #f1faf5;
  border: 1px solid #bee3ce;
}

.auth-form {
  margin-top: 30px;
}

.auth-field + .auth-field {
  margin-top: 20px;
}

.auth-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--auth-graphite);
  font-size: 13px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  background: var(--auth-white);
  border: 1px solid #cfd5dc;
  border-radius: 6px;
}

.auth-input-wrap:focus-within {
  background: #f8fbff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.auth-input-wrap > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 16px;
  color: #7c8591;
  stroke-width: 1.8;
}

.auth-input-wrap:focus-within > svg {
  color: var(--auth-primary);
}

.auth-input-wrap input {
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 14px;
  color: var(--auth-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.auth-input-wrap input::placeholder {
  color: #a0a7b0;
}

.auth-password-toggle {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  color: #7c8591;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--auth-ink);
  background: #f0f2f4;
}

.auth-password-toggle:focus-visible,
.auth-submit:focus-visible {
  outline: 3px solid rgba(47, 107, 255, .24);
  outline-offset: 2px;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 28px;
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--auth-white);
  background: var(--auth-primary);
  border: 1px solid var(--auth-primary);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(37, 89, 214, .2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.auth-submit:hover {
  background: var(--auth-primary-dark);
  border-color: var(--auth-primary-dark);
}

.auth-submit svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.auth-security-note {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #7b8490;
  border-top: 1px solid var(--auth-line);
  font-size: 12px;
  line-height: 1.65;
}

.auth-security-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--auth-success);
  stroke-width: 1.9;
}

.auth-access-footer {
  width: min(410px, 100%);
  margin: 30px auto 0;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #989fa8;
  border-top: 1px solid #eceef1;
  font-family: var(--auth-font-utility);
  font-size: 10px;
}

@media (max-width: 1080px) {
  .auth-layout {
    grid-template-columns: minmax(500px, 1.1fr) minmax(400px, .9fr);
  }

  .auth-visual {
    padding-right: 42px;
    padding-left: 42px;
  }

  .auth-capability-grid {
    width: calc(100% + 84px);
    min-height: 174px;
    margin-right: -42px;
    margin-left: -42px;
    padding-right: 42px;
    padding-left: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-hero-copy h1 {
    font-size: 42px;
  }

  .auth-access {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 900px) {
  body.auth-login-page {
    overflow: auto;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 36vh) auto;
  }

  .auth-visual {
    min-height: 280px;
    grid-template-rows: auto 1fr auto;
    padding-top: 28px;
    background-position: center 43%;
  }

  .auth-visual::after {
    width: 58%;
  }

  .auth-hero-copy {
    align-self: end;
    padding: 24px 0;
  }

  .auth-hero-copy h1 {
    margin: 14px 0 8px;
    font-size: 34px;
  }

  .auth-hero-copy p {
    display: none;
  }

  .auth-capability-grid {
    min-height: 78px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .auth-capability-grid li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 8px;
  }

  .auth-capability-icon {
    width: 28px;
    height: 28px;
  }

  .auth-capability-icon svg {
    width: 15px;
    height: 15px;
  }

  .auth-capability-copy strong {
    font-size: 11px;
  }

  .auth-capability-copy small {
    display: none;
  }

  .auth-access {
    min-height: 600px;
    padding-top: 48px;
    padding-bottom: 24px;
    border-top: 4px solid var(--auth-primary);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .auth-layout {
    grid-template-rows: 205px auto;
  }

  .auth-visual {
    min-height: 205px;
    padding: 20px 20px 0;
    background-position: 56% 44%;
  }

  .auth-visual::before {
    background: rgba(10, 14, 19, .52);
  }

  .auth-visual::after {
    width: 72%;
  }

  .auth-brand-symbol {
    width: 38px;
    height: 38px;
  }

  .auth-brand-symbol svg {
    width: 21px;
    height: 21px;
  }

  .auth-brand-copy strong {
    font-size: 15px;
  }

  .auth-brand-copy small {
    font-size: 8px;
  }

  .auth-hero-copy {
    padding: 18px 0 22px;
  }

  .auth-eyebrow {
    display: none;
  }

  .auth-hero-copy h1 {
    max-width: 310px;
    margin: 0;
    font-size: 25px;
    line-height: 1.28;
  }

  .auth-capability-grid {
    display: none;
  }

  .auth-access {
    min-height: calc(100dvh - 205px);
    padding: 34px 20px 22px;
  }

  .auth-access-inner,
  .auth-access-footer {
    width: 100%;
  }

  .auth-access-label {
    margin-bottom: 18px;
  }

  .auth-access-head h2 {
    font-size: 27px;
  }

  .auth-access-head p {
    font-size: 13px;
  }

  .auth-form {
    margin-top: 25px;
  }

  .auth-input-wrap,
  .auth-submit {
    height: 50px;
  }

  .auth-access-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 26px;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .auth-visual {
    padding-top: 32px;
  }

  .auth-hero-copy {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .auth-hero-copy h1 {
    margin-top: 15px;
    margin-bottom: 12px;
    font-size: 40px;
  }

  .auth-capability-grid {
    min-height: 116px;
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .auth-capability-grid li {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .auth-access {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .auth-access-label {
    margin-bottom: 17px;
  }

  .auth-form {
    margin-top: 24px;
  }

  .auth-access-footer {
    margin-top: 18px;
  }
}
