/* 西川物联网平台 · V2.0.7 登录页独立主题 */
html.xc-login-active,
html.xc-login-active body,
html.xc-login-active #app {
  min-height: 100%;
  overflow: hidden;
}

html.xc-login-active .login-container {
  --xc-blue: #1c7cff;
  --xc-cyan: #19d3c5;
  --xc-ink: #07162c;
  --xc-muted: #687791;
  position: relative !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(26, 133, 255, .32), transparent 33%),
    radial-gradient(circle at 48% 78%, rgba(19, 211, 197, .17), transparent 38%),
    linear-gradient(126deg, #051228 0%, #071a35 44%, #092445 100%) !important;
  color: #fff;
}

html.xc-login-active .login-container::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: '';
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(78, 142, 211, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 142, 211, .11) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 84%);
}

html.xc-login-active .login-container::after {
  position: absolute;
  left: -12vw;
  bottom: -46vh;
  width: 82vw;
  height: 82vw;
  z-index: 0;
  content: '';
  pointer-events: none;
  border: 1px solid rgba(42, 170, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(29, 141, 255, .08), inset 0 0 90px rgba(29, 141, 255, .05);
}

html.xc-login-active .login-wrapper,
html.xc-login-active .login-container[login-style="0"] .login-wrapper,
html.xc-login-active .login-container[login-style="1"] .login-wrapper {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100vh !important;
  background-image: none !important;
  background-color: transparent !important;
  background: transparent !important;
}

html.xc-login-active .login-main,
html.xc-login-active .login-container .login-wrapper .login-main {
  position: relative !important;
  z-index: 2 !important;
  width: min(1500px, 100%) !important;
  max-width: 1500px !important;
  min-width: 0 !important;
  height: 100vh !important;
  margin: 0 auto !important;
}

html.xc-login-active .form-wrapper,
html.xc-login-active .login-container .login-wrapper .login-main .form-wrapper,
html.xc-login-active .login-container[login-style="0"] .login-wrapper .form-wrapper,
html.xc-login-active .login-container[login-style="1"] .login-wrapper .form-wrapper {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 50% !important;
  right: clamp(38px, 6vw, 105px) !important;
  z-index: 8 !important;
  width: 430px !important;
  max-width: calc(100vw - 48px) !important;
  max-height: none !important;
  padding: 34px 42px 40px !important;
  transform: translateY(-50%) !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 30px 80px rgba(0, 8, 25, .42), 0 2px 0 rgba(255, 255, 255, .9) inset !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
  backdrop-filter: blur(22px) saturate(130%) !important;
  animation: xc-form-arrive .72s cubic-bezier(.2, .85, .22, 1) both;
}

html.xc-login-active .form-wrapper::before {
  position: absolute;
  top: 0;
  left: 42px;
  right: 42px;
  height: 3px;
  content: '';
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--xc-blue) 26%, var(--xc-cyan) 74%, transparent);
  box-shadow: 0 0 16px rgba(28, 124, 255, .45);
}

html.xc-login-active .xc-form-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 29px;
  color: var(--xc-ink);
}

html.xc-login-active .xc-form-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px 4px 12px 4px;
  color: #fff;
  background: linear-gradient(145deg, #176ee8, #20cabc);
  box-shadow: 0 8px 18px rgba(27, 128, 221, .28);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.4px;
}

html.xc-login-active .xc-form-brand b,
html.xc-login-active .xc-form-brand small {
  display: block;
}

html.xc-login-active .xc-form-brand b {
  margin-bottom: 3px;
  font-size: 16px;
  letter-spacing: 2px;
}

html.xc-login-active .xc-form-brand small {
  color: #8591a4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

html.xc-login-active .platform-title,
html.xc-login-active .login-container .login-wrapper .login-main .form-wrapper .platform-title {
  margin: 0 0 8px !important;
  color: var(--xc-ink) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  letter-spacing: .5px !important;
}

html.xc-login-active .xc-form-kicker {
  margin-bottom: 28px;
  color: #8a96a9;
  font-size: 13px;
  letter-spacing: .8px;
}

html.xc-login-active .form-wrapper .lang-select {
  top: 31px !important;
  right: 38px !important;
  color: #718097 !important;
}

html.xc-login-active .login-form .el-form-item {
  margin-bottom: 19px !important;
}

html.xc-login-active .login-form .el-form-item .el-form-item__label {
  padding: 0 0 8px !important;
  color: #263750 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 18px !important;
}

html.xc-login-active .login-form .el-form-item .el-input {
  height: 48px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 11px !important;
  background: #f7f9fc !important;
  box-shadow: 0 0 0 3px transparent !important;
  transition: border-color .24s ease, box-shadow .24s ease, background .24s ease !important;
}

html.xc-login-active .login-form .el-form-item .el-input:hover {
  border-color: #b8c7db !important;
  background: #fff !important;
}

html.xc-login-active .login-form .el-form-item .el-input:focus-within {
  border-color: #438df2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(40, 128, 247, .11) !important;
}

html.xc-login-active .login-form .el-form-item .el-input input {
  height: 46px !important;
  padding: 10px 40px 10px 45px !important;
  color: #14243b !important;
  font-size: 14px !important;
  line-height: 46px !important;
}

html.xc-login-active .login-form .el-form-item .el-input input::placeholder {
  color: #9aa7b9 !important;
}

html.xc-login-active .login-form .svg-container {
  bottom: 3px !important;
  left: 0 !important;
  padding: 9px 7px 8px 15px !important;
  color: #6f819a !important;
}

html.xc-login-active .login-form .el-button {
  height: 50px !important;
  margin-top: 10px !important;
  border-radius: 11px !important;
  background: linear-gradient(105deg, #176fe9 0%, #248af2 55%, #18b9b2 100%) !important;
  box-shadow: 0 12px 26px rgba(31, 119, 225, .28) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease !important;
}

html.xc-login-active .login-form .el-button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
  box-shadow: 0 16px 34px rgba(31, 119, 225, .38) !important;
}

html.xc-login-active .login-footer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 14px !important;
  z-index: 6 !important;
  display: block !important;
  height: auto !important;
  padding: 0 26px !important;
  color: rgba(190, 207, 230, .65) !important;
  background: transparent !important;
  font-size: 11px !important;
  pointer-events: none;
}

html.xc-login-active .login-footer > div:last-child,
html.xc-login-active .login-footer span:not(.info-text) {
  display: none !important;
}

html.xc-login-active .login-footer a {
  color: inherit !important;
  pointer-events: auto;
}

/* 左侧工业设备场景 */
html.xc-login-active .xc-login-scene {
  position: absolute;
  inset: 0 520px 0 0;
  z-index: 3;
  color: #fff;
  pointer-events: none;
}

html.xc-login-active .xc-scene-copy {
  position: absolute;
  top: clamp(70px, 9vh, 110px);
  left: clamp(42px, 6vw, 100px);
  z-index: 5;
  animation: xc-copy-arrive .78s .08s cubic-bezier(.2, .85, .22, 1) both;
}

html.xc-login-active .xc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #77a4d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
}

html.xc-login-active .xc-eyebrow i {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--xc-cyan), var(--xc-blue));
  box-shadow: 0 0 12px rgba(25, 211, 197, .8);
}

html.xc-login-active .xc-scene-copy h1 {
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(36px, 3.2vw, 54px);
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: 1px;
  text-shadow: 0 10px 35px rgba(0, 0, 0, .25);
}

html.xc-login-active .xc-scene-copy h1 em {
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, #47b0ff, #35e0cf 72%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

html.xc-login-active .xc-scene-copy p {
  margin: 18px 0 0;
  color: #9db6d2;
  font-size: 17px;
  letter-spacing: 3px;
}

html.xc-login-active .xc-feature-row {
  display: flex;
  gap: 12px;
  margin-top: 27px;
}

html.xc-login-active .xc-feature-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(95, 162, 226, .22);
  border-radius: 999px;
  color: #bdd0e6;
  background: rgba(17, 52, 89, .48);
  font-size: 12px;
  backdrop-filter: blur(6px);
}

html.xc-login-active .xc-feature-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--xc-cyan);
  box-shadow: 0 0 8px var(--xc-cyan);
}

html.xc-login-active .xc-equipment-stage {
  position: absolute;
  left: clamp(42px, 6vw, 100px);
  bottom: clamp(70px, 8vh, 98px);
  width: min(690px, calc(100% - 80px));
  height: 300px;
  perspective: 1000px;
}

html.xc-login-active .xc-equipment-stage::before {
  position: absolute;
  left: -5%;
  right: -2%;
  bottom: -17px;
  height: 82px;
  content: '';
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(22, 150, 236, .22), transparent 68%);
  transform: rotateX(58deg);
  filter: blur(2px);
}

html.xc-login-active .xc-orbit {
  position: absolute;
  border: 1px solid rgba(55, 153, 241, .16);
  border-radius: 50%;
  transform: rotateX(64deg);
}

html.xc-login-active .xc-orbit-a {
  left: -80px;
  bottom: -142px;
  width: 680px;
  height: 330px;
  animation: xc-orbit-pulse 4.8s ease-in-out infinite;
}

html.xc-login-active .xc-orbit-b {
  left: 15px;
  bottom: -105px;
  width: 520px;
  height: 240px;
  animation: xc-orbit-pulse 4.8s 1.3s ease-in-out infinite;
}

html.xc-login-active .xc-equipment {
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
  width: 158px;
  height: 224px;
  padding: 16px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(117, 172, 225, .34);
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .09), transparent 33%),
    linear-gradient(180deg, rgba(24, 61, 101, .96), rgba(8, 31, 59, .96));
  box-shadow: 0 20px 40px rgba(0, 7, 20, .42), inset 0 0 24px rgba(64, 143, 218, .08);
  transform: rotateY(-5deg);
  animation: xc-device-float 5s ease-in-out infinite;
}

html.xc-login-active .xc-equipment::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: '';
  background: linear-gradient(180deg, transparent, rgba(40, 158, 245, .78), transparent);
}

html.xc-login-active .xc-regulator { left: 0; }
html.xc-login-active .xc-inverter { left: 183px; bottom: 17px; animation-delay: -.8s; }
html.xc-login-active .xc-starter { left: 366px; animation-delay: -1.7s; }

html.xc-login-active .xc-equipment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7fa8d0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

html.xc-login-active .xc-equipment-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ce3c7;
  box-shadow: 0 0 10px #2ce3c7;
  animation: xc-status-blink 2.1s ease-in-out infinite;
}

html.xc-login-active .xc-equipment-screen {
  box-sizing: border-box;
  height: 67px;
  margin-top: 13px;
  padding: 13px 12px;
  border: 1px solid rgba(55, 174, 230, .28);
  border-radius: 6px;
  background: rgba(2, 17, 33, .82);
  box-shadow: inset 0 0 16px rgba(12, 95, 148, .25);
}

html.xc-login-active .xc-equipment-screen b,
html.xc-login-active .xc-equipment-screen small {
  display: block;
}

html.xc-login-active .xc-equipment-screen b {
  color: #59e4d4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(70, 223, 207, .45);
}

html.xc-login-active .xc-equipment-screen small {
  margin-top: 3px;
  color: #4b7699;
  font-size: 7px;
  letter-spacing: 1px;
}

html.xc-login-active .xc-meter,
html.xc-login-active .xc-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin: 7px 5px 0;
}

html.xc-login-active .xc-meter i {
  width: 13px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #2ba6e7, rgba(31, 100, 158, .2));
}

html.xc-login-active .xc-meter i:nth-child(1) { height: 17px; }
html.xc-login-active .xc-meter i:nth-child(2) { height: 29px; }
html.xc-login-active .xc-meter i:nth-child(3) { height: 38px; }
html.xc-login-active .xc-meter i:nth-child(4) { height: 25px; }
html.xc-login-active .xc-meter i:nth-child(5) { height: 34px; }

html.xc-login-active .xc-dial {
  position: relative;
  width: 43px;
  height: 43px;
  margin: 10px auto 2px;
  border: 4px solid #203f5e;
  border-top-color: #36cfc4;
  border-right-color: #2d96dc;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(42, 169, 215, .2);
}

html.xc-login-active .xc-dial i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: #78dcd1;
  transform: translate(-50%, -90%) rotate(42deg);
  transform-origin: 50% 90%;
}

html.xc-login-active .xc-bars {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html.xc-login-active .xc-bars i {
  width: 10px;
  height: 10px;
  border: 1px solid #315c80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(27, 83, 128, .17);
}

html.xc-login-active .xc-bars i:first-child {
  border-color: #2ad6c4;
  background: #20ad9f;
  box-shadow: 0 0 12px rgba(42, 214, 196, .62);
}

html.xc-login-active .xc-equipment-name {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  color: #9bb8d2;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-align: center;
}

html.xc-login-active .xc-flow {
  position: absolute;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 186, 217, .8), transparent);
}

html.xc-login-active .xc-flow-a { left: 122px; bottom: 153px; width: 95px; }
html.xc-login-active .xc-flow-b { left: 306px; bottom: 138px; width: 95px; }

html.xc-login-active .xc-flow i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58e1d6;
  box-shadow: 0 0 9px #58e1d6;
  animation: xc-data-flow 2.8s linear infinite;
}

html.xc-login-active .xc-flow i:nth-child(2) { animation-delay: -.9s; }
html.xc-login-active .xc-flow i:nth-child(3) { animation-delay: -1.8s; }

html.xc-login-active .xc-status-card {
  position: absolute;
  right: 0;
  bottom: 74px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 167px;
  padding: 11px 12px;
  border: 1px solid rgba(81, 168, 228, .25);
  border-radius: 10px;
  color: #c8daeb;
  background: rgba(9, 38, 70, .84);
  box-shadow: 0 12px 28px rgba(0, 8, 24, .3);
  backdrop-filter: blur(10px);
  animation: xc-status-float 4.5s ease-in-out infinite;
}

html.xc-login-active .xc-status-card > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #2ce3c7;
  box-shadow: 0 0 12px #2ce3c7;
}

html.xc-login-active .xc-status-card span { flex: 1; }
html.xc-login-active .xc-status-card b,
html.xc-login-active .xc-status-card small { display: block; }
html.xc-login-active .xc-status-card b { font-size: 10px; }
html.xc-login-active .xc-status-card small { margin-top: 3px; color: #6889a8; font-size: 8px; }
html.xc-login-active .xc-status-card strong { color: #57dfd2; font-family: Consolas, monospace; font-size: 11px; }

@keyframes xc-form-arrive {
  from { opacity: 0; transform: translate(28px, -48%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes xc-copy-arrive {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xc-device-float {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-7px) rotateY(-5deg); }
}

@keyframes xc-status-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes xc-status-blink {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@keyframes xc-data-flow {
  from { transform: translateX(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  to { transform: translateX(92px); opacity: 0; }
}

@keyframes xc-orbit-pulse {
  0%, 100% { opacity: .35; transform: rotateX(64deg) scale(.98); }
  50% { opacity: .9; transform: rotateX(64deg) scale(1.02); }
}

@media (max-height: 760px) and (min-width: 901px) {
  html.xc-login-active .xc-scene-copy { top: 42px; }
  html.xc-login-active .xc-equipment-stage { bottom: 36px; transform: scale(.88); transform-origin: left bottom; }
  html.xc-login-active .form-wrapper { padding-top: 28px !important; padding-bottom: 31px !important; }
  html.xc-login-active .xc-form-brand { margin-bottom: 21px; }
  html.xc-login-active .xc-form-kicker { margin-bottom: 20px; }
}

@media (max-width: 1120px) {
  html.xc-login-active .xc-login-scene { right: 470px; }
  html.xc-login-active .xc-equipment-stage { transform: scale(.82); transform-origin: left bottom; }
  html.xc-login-active .xc-scene-copy h1 { font-size: 38px; }
  html.xc-login-active .xc-status-card { display: none; }
}

@media (max-width: 900px) {
  html.xc-login-active .login-container::before {
    mask-image: none;
    opacity: .28;
  }
  html.xc-login-active .xc-login-scene { display: none; }
  html.xc-login-active .form-wrapper,
  html.xc-login-active .login-container .login-wrapper .login-main .form-wrapper {
    left: 50% !important;
    right: auto !important;
    width: 430px !important;
    transform: translate(-50%, -50%) !important;
  }
  html.xc-login-active .login-footer { display: none !important; }
  @keyframes xc-form-arrive {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
}

@media (max-width: 520px) {
  html.xc-login-active .form-wrapper,
  html.xc-login-active .login-container .login-wrapper .login-main .form-wrapper {
    width: calc(100vw - 28px) !important;
    max-width: none !important;
    padding: 28px 24px 31px !important;
    border-radius: 19px !important;
  }
  html.xc-login-active .form-wrapper::before { left: 28px; right: 28px; }
  html.xc-login-active .xc-form-brand { margin-bottom: 24px; }
  html.xc-login-active .platform-title,
  html.xc-login-active .login-container .login-wrapper .login-main .form-wrapper .platform-title {
    font-size: 26px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.xc-login-active .form-wrapper,
  html.xc-login-active .xc-scene-copy,
  html.xc-login-active .xc-equipment,
  html.xc-login-active .xc-status-card,
  html.xc-login-active .xc-flow i,
  html.xc-login-active .xc-orbit,
  html.xc-login-active .xc-equipment-head i {
    animation: none !important;
  }
}
