/* Fuyipay auth presentation. All rules are isolated from the signed-in app. */
body.fy-auth-page {
  --fy-purple: #7e22ce;
  --fy-ink: #292136;
  --fy-muted: #857b93;
  --fy-line: #e9e3f1;
  --el-color-primary: #7e22ce;
  --el-color-primary-light-3: #a45cde;
  --el-color-primary-light-5: #c08ae9;
  --el-color-primary-light-7: #dec5f3;
  --el-color-primary-light-8: #ebddf8;
  --el-color-primary-light-9: #f7f0fc;
  --el-color-primary-dark-2: #6819ad;
  --main-color: #7e22ce;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f7f5fb;
  color: var(--fy-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
body.fy-auth-page *, body.fy-auth-page *::before, body.fy-auth-page *::after { box-sizing: border-box; }
body.fy-auth-page #app {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 32px;
  min-height: calc(100vh - 144px);
  min-height: calc(100dvh - 144px);
}
.fy-auth-site-header { height: 80px; border-bottom: 1px solid var(--fy-line); background: #fff; }
.fy-auth-header-inner {
  height: 100%; max-width: 1180px; padding: 0 28px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.fy-auth-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fy-ink); flex-shrink: 0; }
.fy-auth-brand img { width: 40px; height: 40px; object-fit: contain; display: block; }
.fy-auth-brand strong { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.fy-auth-brand span { font-size: 15px; color: var(--fy-muted); border-left: 1px solid #ddd5e8; padding-left: 18px; margin-left: 6px; }
.fy-auth-site-nav { display: flex; align-items: center; gap: 28px; }
.fy-auth-site-nav a { color: #756b83; text-decoration: none; font-size: 14px; transition: color .18s; }
.fy-auth-site-nav a:hover { color: var(--fy-purple); }
body.fy-auth-page .fy-auth-native-tools { display: none !important; }
body.fy-auth-page .fy-auth-root {
  width: 100%; height: auto !important; min-height: 0;
  background: none !important; padding: 0 !important;
}
body.fy-auth-page .fy-auth-card {
  display: flex !important; flex-direction: row !important; align-items: stretch !important; position: relative;
  width: 100% !important; max-width: 1120px !important; min-height: 620px; height: auto !important;
  margin: 0 auto; padding: 0 !important;
  border: 1px solid var(--fy-line); border-radius: 24px;
  background: #fff !important;
  box-shadow: 0 16px 56px -24px rgba(55, 28, 83, .23);
  overflow: hidden;
}
body.fy-auth-page .fy-auth-panel {
  position: relative; display: flex !important; align-items: stretch;
  flex: 0 0 43%; width: 43% !important; min-width: 0; height: auto !important;
  padding: 0 !important; border-radius: 0;
  background: linear-gradient(145deg, #59298c 0%, #41225f 62%, #342342 100%) !important;
  color: #fff; overflow: hidden;
}
.fy-auth-panel > .login-left-content, .fy-auth-panel > .logo { display: none !important; }
body.fy-auth-page .fy-auth-card .fy-auth-panel::before, body.fy-auth-page .fy-auth-card .fy-auth-panel::after {
  content: ""; position: absolute; width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; background: none;
}
body.fy-auth-page .fy-auth-card .fy-auth-panel::before { top: -265px; right: -155px; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02); }
body.fy-auth-page .fy-auth-card .fy-auth-panel::after { bottom: -300px; left: -85px; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02); }
.fy-auth-story { position: relative; z-index: 1; width: 100%; padding: 46px 42px 36px; display: flex; flex-direction: column; }
.fy-auth-story-eyebrow { font-size: 12px; letter-spacing: 2.5px; color: #d7bde9; font-weight: 500; }
.fy-auth-story h2 { margin: 30px 0 16px; font-size: 35px; line-height: 1.5; letter-spacing: 1px; font-weight: 650; color: #fff; }
.fy-auth-story p { margin: 0; max-width: 300px; color: #d0bedf; font-size: 14px; line-height: 1.9; }
.fy-auth-visual { position: relative; display: grid; place-items: center; width: 100%; min-height: 214px; margin: 24px 0; }
.fy-auth-board { width: 100%; max-width: 310px; padding: 0 20px 8px; border: 1px solid #ffffff26; border-radius: 16px; background: linear-gradient(135deg, #ffffff0f, #ffffff05); box-shadow: 0 12px 28px #23133320; }
.fy-auth-board-head { display: flex; align-items: center; gap: 9px; height: 58px; margin-bottom: 6px; border-bottom: 1px solid #ffffff16; color: #f0e5fa; font-size: 12px; letter-spacing: .5px; }
.fy-auth-board-head img { display: block; width: 28px; height: 28px; object-fit: contain; }
.fy-auth-board-head i { width: 5px; height: 5px; border-radius: 50%; background: #c6a3e3; margin-left: auto; }
.fy-auth-board-row { display: flex; align-items: center; gap: 12px; min-height: 43px; color: #d6c2e7; font-size: 12px; }
.fy-auth-board-row svg { width: 18px; height: 18px; color: #cba6ec; flex-shrink: 0; }
.fy-auth-board-row b { width: 28px; height: 4px; margin-left: auto; border-radius: 3px; background: #ffffff20; }
.fy-auth-story-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #c8b4d7; font-size: 12px; line-height: 1.7; display: flex; gap: 8px; align-items: center; }
.fy-auth-story-foot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c4a1df; flex-shrink: 0; }
body.fy-auth-page .fy-auth-right {
  position: relative; display: flex; align-items: center; flex: 1; width: auto; min-width: 0;
  height: auto; padding: 46px 60px !important; background: #fff !important;
}
body.fy-auth-page .fy-auth-card .fy-auth-content { width: 100%; max-width: 420px; margin: auto; height: auto; }
body.fy-auth-page[data-fy-auth-area="admin"] .fy-auth-content { padding: 0 !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content-wrap { width: 100% !important; max-width: none !important; height: auto !important; min-height: 0; padding: 0 !important; position: static; overflow: visible; animation: none; }
body.fy-auth-page[data-fy-auth-area="user"] .fy-auth-right { display: block; max-width: none !important; margin: 0; }
.fy-auth-page[data-fy-auth-area="user"] .fy-auth-content > .header,
.fy-auth-page[data-fy-auth-area="user"] .fy-auth-content > form,
.fy-auth-page[data-fy-auth-area="user"] .fy-auth-content > .fy-auth-eyebrow { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
body.fy-auth-page .fy-auth-card .fy-auth-content > .header { margin: 0 auto 26px; text-align: left; }
body.fy-auth-page .fy-auth-card .fy-auth-content > .title, body.fy-auth-page .fy-auth-card .fy-auth-content > .header > .title {
  margin: 0; padding: 0; color: var(--fy-ink) !important; font-size: 28px; font-weight: 650; line-height: 1.5; letter-spacing: .5px;
}
.fy-auth-eyebrow { display: flex; align-items: center; gap: 7px; color: var(--fy-purple); font-size: 12px; margin: 0 0 12px; letter-spacing: 1px; font-weight: 500; }
.fy-auth-eyebrow::before { content: ""; width: 6px; height: 6px; background: #9c4fe0; border-radius: 50%; }
body.fy-auth-page .fy-auth-card .fy-auth-content .sub-title, .fy-auth-intro {
  margin: 8px 0 0; color: var(--fy-muted); font-size: 13px; line-height: 1.8; font-weight: 400;
}
body.fy-auth-page .fy-auth-card .fy-auth-content > .sub-title { margin-bottom: 26px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-form { margin-top: 0 !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-form-item { margin-bottom: 22px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .fy-auth-field,
body.fy-auth-page .fy-auth-card .fy-auth-content .el-form-item:has(> .fy-auth-label) { display: flex; flex-direction: column; align-items: stretch; }
.fy-auth-label { display: block; color: #5b5069; font-size: 13px; line-height: 20px; margin-bottom: 8px; font-weight: 500; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input { height: 48px !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__wrapper {
  --fy-auth-input-bg: #fcfbfe;
  background: var(--fy-auth-input-bg) !important; padding: 0 14px !important; border-radius: 9px;
  box-shadow: 0 0 0 1px #e3ddeb inset !important;
  transition: box-shadow .18s, background-color .18s;
}
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__wrapper:hover { box-shadow: 0 0 0 1px #c8b2df inset !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__wrapper.is-focus { --fy-auth-input-bg: #fff; background: var(--fy-auth-input-bg) !important; box-shadow: 0 0 0 1.5px #9441d7 inset, 0 0 0 3px #7e22ce0c !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .is-error .el-input__wrapper { box-shadow: 0 0 0 1px var(--el-color-danger) inset !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__inner { font-size: 14px; color: var(--fy-ink) !important; height: calc(100% - 4px); min-height: 0; background-color: transparent; }
/* Keep browser-filled text inside the native field and match its surrounding surface. */
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__inner:is(:autofill, :-webkit-autofill) {
  -webkit-box-shadow: 0 0 0 1000px var(--fy-auth-input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--fy-auth-input-bg) inset !important;
  -webkit-text-fill-color: var(--fy-ink) !important;
  caret-color: var(--fy-ink);
}
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__inner::placeholder { color: #a39aaa; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__prefix { color: #a297af; margin-right: 8px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-button { border-radius: 9px; font-weight: 500; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-button--primary {
  --el-button-bg-color: #7e22ce; --el-button-border-color: #7e22ce;
  --el-button-hover-bg-color: #8c32d7; --el-button-hover-border-color: #8c32d7;
  --el-button-active-bg-color: #6819ad; --el-button-active-border-color: #6819ad;
  min-height: 46px; font-size: 15px; letter-spacing: 2px; box-shadow: 0 5px 14px #7e22ce18;
}
body.fy-auth-page .fy-auth-card .fy-auth-content a.text-theme, body.fy-auth-page .fy-auth-card .fy-auth-content .el-button--text { color: var(--fy-purple) !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-checkbox__label { color: #807389 !important; font-size: 13px; padding-left: 7px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-checkbox__input.is-checked .el-checkbox__inner { border-color: var(--fy-purple); background: var(--fy-purple) !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-checkbox__inner { border-radius: 4px; border-color: #d8ccdf; background: #fff !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-divider { border-color: #eee8f3; margin: 28px 0 20px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .el-divider__text { padding: 0 16px; background: #fff !important; }
body.fy-auth-page .fy-auth-card .fy-auth-content .oauth-container { margin-top: 0; }
body.fy-auth-page .fy-auth-card .fy-auth-content .oauth-icons { gap: 18px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .oauth-icon { width: 40px; height: 40px; border: 1px solid #eee8f3; background: #fcfbfe; transition: box-shadow .18s; }
body.fy-auth-page .fy-auth-card .fy-auth-content .oauth-icon:hover { box-shadow: 0 0 0 3px #7e22ce0b; }
body.fy-auth-page .fy-auth-card .fy-auth-content .drag_verify { border: 1px solid #e5ddec; background: #f6f2fa !important; border-radius: 8px !important; color: #8a789a; }
body.fy-auth-page .fy-auth-card .fy-auth-content .dv_handler { background: #fff !important; color: var(--fy-purple); border-radius: 7px; }
body.fy-auth-page .fy-auth-card .fy-auth-content .dv_text { color: #8a789a; }
.fy-auth-site-footer { min-height: 64px; padding: 12px 24px 22px; text-align: center; color: #aaa0b5; font-size: 12px; line-height: 1.8; }
.fy-auth-site-footer a { margin-left: 18px; color: #8a7b9b; text-decoration: none; }
.fy-auth-site-footer a:hover { color: var(--fy-purple); }
body.fy-auth-page a:focus-visible, body.fy-auth-page button:focus-visible, body.fy-auth-page .oauth-icon:focus-visible { outline: 2px solid #a552e5; outline-offset: 4px; }
@media (min-width: 761px) and (max-height: 820px) {
  .fy-auth-site-header { height: 72px; }
  body.fy-auth-page #app { min-height: calc(100dvh - 120px); padding: 24px 28px 16px; }
  body.fy-auth-page .fy-auth-card { min-height: 580px; }
  body.fy-auth-page .fy-auth-right { padding-top: 30px !important; padding-bottom: 30px !important; }
  .fy-auth-story { padding-top: 32px; padding-bottom: 28px; }
  .fy-auth-story h2 { margin-top: 20px; font-size: 32px; }
  .fy-auth-visual { min-height: 194px; margin: 20px 0; }
  .fy-auth-site-footer { min-height: 48px; padding: 8px 24px 16px; }
}
/* The authenticated app and CAPTCHA overlays retain their original styles. */
@media (max-width: 1100px) and (min-width: 761px) {
  body.fy-auth-page .fy-auth-card { min-height: 600px; }
  body.fy-auth-page .fy-auth-panel { flex-basis: 40%; width: 40% !important; }
  .fy-auth-story { padding: 40px 28px 30px; }
  .fy-auth-story h2 { font-size: 29px; }
  .fy-auth-visual { min-height: 194px; }
  .fy-auth-board { padding-left: 14px; padding-right: 14px; }
  body.fy-auth-page .fy-auth-right { padding: 40px 36px !important; }
}
@media (max-width: 760px) {
  .fy-auth-site-header { height: 76px; background: #4a246b; border-bottom: none; }
  .fy-auth-header-inner { padding: 0 22px; gap: 12px; }
  .fy-auth-brand { gap: 9px; color: #fff; }
  .fy-auth-brand img { width: 36px; height: 36px; }
  .fy-auth-brand strong { font-size: 21px; }
  .fy-auth-brand span { display: none; }
  .fy-auth-site-nav { gap: 18px; }
  .fy-auth-site-nav a, .fy-auth-site-nav a:hover { font-size: 12px; color: #e3d5ee; }
  body.fy-auth-page #app { min-height: calc(100vh - 140px); min-height: calc(100dvh - 140px); padding: 28px 20px 20px; }
  body.fy-auth-page .fy-auth-card { max-width: 480px !important; min-height: 0; border-radius: 20px; }
  body.fy-auth-page .fy-auth-panel { display: none !important; }
  body.fy-auth-page .fy-auth-right { padding: 34px 30px 30px !important; }
  body.fy-auth-page .fy-auth-card .fy-auth-content > .title, body.fy-auth-page .fy-auth-card .fy-auth-content > .header > .title { font-size: 25px; }
  body.fy-auth-page .fy-auth-card .fy-auth-content > .header { margin-bottom: 24px; }
  body.fy-auth-page .fy-auth-card .fy-auth-content > .sub-title { margin-bottom: 24px; }
  body.fy-auth-page .fy-auth-card .fy-auth-content .el-form-item { margin-bottom: 22px; }
  body.fy-auth-page .fy-auth-card .fy-auth-content .el-input, body.fy-auth-page .fy-auth-card .fy-auth-content .el-button--primary { min-height: 46px; }
  body.fy-auth-page .fy-auth-card .fy-auth-content .el-divider { margin: 25px 0 18px; }
  .fy-auth-site-footer { padding: 8px 20px 20px; font-size: 11px; }
  .fy-auth-site-footer a { margin-left: 12px; }
}
@media (max-width: 370px) {
  .fy-auth-header-inner { padding: 0 18px; }
  .fy-auth-site-nav { gap: 12px; }
  body.fy-auth-page #app { padding: 20px 14px 18px; }
  body.fy-auth-page .fy-auth-right { padding: 28px 22px !important; }
  body.fy-auth-page .fy-auth-card .fy-auth-content .el-input__wrapper { padding: 0 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.fy-auth-page * { transition: none !important; }
}
