/* Kylie CDN login */
html,
body {
  min-height: 100%;
  margin: 0 !important;
  background: #eef4fb !important;
  color: #515a6e !important;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif !important;
}

html.kylie-auth,
html.kylie-auth body,
html.kylie-auth #app,
html.kylie-auth #app > div {
  min-height: 100vh !important;
  background: #eef4fb !important;
}

html.kylie-auth #app > div > *:not(.cf-auth-stage):not(.cf-auth-bar):not(.p-toast) {
  display: none !important;
}

.cf-auth-bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e6e9f0;
  box-shadow: 0 2px 8px rgba(51, 51, 51, 0.08);
}

.cf-auth-bar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17233d !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none !important;
}

.cf-auth-bar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.cf-auth-bar i {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8def, #2d8cf0);
}

.cf-auth-stage {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: 90px 16px 48px;
}

.cf-auth {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
  max-width: 960px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 35, 61, 0.08);
}

.cf-auth-hero {
  min-height: 520px;
  border-right: 1px solid #edf1f7;
  background: #d9e8ff url("https://kylie-cdn-assets.pages.dev/ad.jpeg") center / cover no-repeat;
}

.cf-auth .form-box,
html.kylie-auth .form-box {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 520px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 48px 56px !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.cf-auth .form-box > form,
html.kylie-auth .form-box form,
html.kylie-auth form.flex {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 16px !important;
}

html.kylie-auth form.flex .header,
html.kylie-auth .form-box .header {
  width: 100% !important;
  margin: 0 0 8px !important;
  text-align: left !important;
}

html.kylie-auth form.flex .header h6,
html.kylie-auth .form-box .header h6 {
  margin: 0 !important;
  color: #17233d !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* 隐藏伪标题，直接用真实站名 */
html.kylie-auth form.flex .header h6::before,
html.kylie-auth form.flex .header h6::after {
  content: none !important;
  display: none !important;
}

html.kylie-auth .form-box .header .cf-auth-sub {
  display: block;
  margin-top: 6px;
  color: #808695;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
}

html.kylie-auth .p-iconfield {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

html.kylie-auth .p-iconfield .p-inputicon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  left: 12px !important;
  color: #c5c8ce !important;
  font-size: 18px !important;
}

html.kylie-auth .p-inputtext,
html.kylie-auth input.p-inputtext,
html.kylie-auth .p-iconfield .p-inputtext {
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 12px 0 36px !important;
  border: 1px solid #dcdee2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #515a6e !important;
  font-size: 14px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html.kylie-auth .p-inputtext::placeholder {
  color: #c5c8ce !important;
}

html.kylie-auth .p-inputtext:enabled:focus,
html.kylie-auth .p-iconfield:focus-within .p-inputtext {
  border-color: #2d8cf0 !important;
  box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.2) !important;
}

html.kylie-auth .p-button,
html.kylie-auth button.p-button,
html.kylie-auth form button[type="submit"] {
  width: 100% !important;
  height: 40px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #2d8cf0 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

html.kylie-auth form button[type="submit"]:hover,
html.kylie-auth .p-button:not(:disabled):hover {
  background: #57a3f3 !important;
}

html.kylie-auth form .field {
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

html.kylie-auth form .register-box,
html.kylie-auth form .cf-auth-extra {
  margin-top: 4px !important;
  text-align: right !important;
}

html.kylie-auth form .field > a,
html.kylie-auth form .register-box a,
html.kylie-auth form a.link {
  color: #2d8cf0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

html.kylie-auth form label,
html.kylie-auth form .p-checkbox {
  color: #808695 !important;
  font-size: 13px !important;
}

@media (max-width: 800px) {
  .cf-auth {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cf-auth-hero {
    display: none;
  }
  .cf-auth .form-box,
  html.kylie-auth .form-box {
    min-height: auto !important;
    padding: 32px 24px 28px !important;
  }
}
