[data-dot], .nav-dot { display: none; }
html:not([data-auth="in"]) [data-auth-show="in"] { display: none; }
html[data-auth="in"] [data-auth-show="out"] { display: none; }
.auth-gate { padding: 26px 0 8px; }
.auth-card {
max-width: 440px; margin: 0 auto;
background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
padding: 32px 28px; text-align: center; box-shadow: var(--sh);
background-image: radial-gradient(circle at 100% 0%, rgba(21,101,192,.05), transparent 60%);
}
.auth-ic {
width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
display: flex; align-items: center; justify-content: center; font-size: 30px;
background: var(--blue-soft);
}
.auth-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 10px; letter-spacing: .5px; }
.auth-card p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 18px; }
.auth-card .sh-btn { min-width: 180px; }
.auth-sub { font-size: 11.5px !important; color: var(--dim) !important; margin: 14px 0 0 !important; }
.ydfz-auth-mask {
position: fixed; inset: 0; z-index: 300;
display: flex; align-items: center; justify-content: center;
background: rgba(16,26,40,.46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
padding: 20px; opacity: 0; pointer-events: none;
transition: opacity .2s var(--ease);
}
.ydfz-auth-mask.show { opacity: 1; pointer-events: auto; }
.ydfz-auth-box {
position: relative; width: 100%; max-width: 360px;
background: #fff; border-radius: 20px; padding: 30px 26px 24px;
box-shadow: 0 24px 60px rgba(16,26,40,.30);
text-align: center;
transform: translateY(12px) scale(.98); transition: transform .24s var(--ease);
}
.ydfz-auth-mask.show .ydfz-auth-box { transform: none; }
.ydfz-auth-x {
position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
border: none; background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
cursor: pointer; border-radius: 50%;
}
.ydfz-auth-x:hover { background: var(--blue-soft); color: var(--blue); }
.ydfz-auth-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.ydfz-auth-sub2 { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.ydfz-auth-qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ydfz-auth-qr {
width: 200px; height: 200px; border-radius: 14px;
border: 1px dashed #bcd4ee; background: #f8fbff;
display: flex; align-items: center; justify-content: center;
}
.ydfz-auth-qr svg, .ydfz-auth-qr img { width: 168px !important; height: 168px !important; display: block; }
.ydfz-auth-qr-status { font-size: 12px; color: var(--muted); min-height: 18px; }
.ydfz-auth-qr-status.ok { color: #2e7d32; font-weight: 700; }
.ydfz-auth-qr-status.err { color: #E65100; }
.ydfz-auth-div {
display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
color: var(--dim); font-size: 11.5px;
}
.ydfz-auth-div::before, .ydfz-auth-div::after {
content: ""; flex: 1; height: 1px; background: var(--line-soft);
}
.ydfz-auth-demo { width: 100%; }
.ydfz-auth-tip { font-size: 11px; color: var(--dim); margin: 12px 0 0; line-height: 1.6; }
.ydfz-auth-user {
display: flex; align-items: center; gap: 8px; justify-content: center;
font-size: 12.5px; color: var(--blue); margin-top: 6px;
}
.ydfz-auth-field {
display: flex; align-items: center; gap: 0;
border: 1px solid var(--line); border-radius: 12px; background: #fbfdff;
margin-bottom: 10px; overflow: hidden;
transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.ydfz-auth-field:focus-within {
border-color: var(--blue); background: #fff;
box-shadow: 0 0 0 3px rgba(21,101,192,.10);
}
.ydfz-auth-prefix {
flex: 0 0 auto; padding: 0 4px 0 14px; font-size: 13.5px; font-weight: 700;
color: var(--muted); letter-spacing: .3px;
}
.ydfz-auth-input {
flex: 1; min-width: 0; border: none; outline: none; background: transparent;
padding: 13px 14px; font-size: 14.5px; color: var(--ink); letter-spacing: .5px;
font-family: inherit;
}
.ydfz-auth-field .ydfz-auth-prefix + .ydfz-auth-input { padding-left: 8px; }
.ydfz-auth-input::placeholder { color: #a8b6c6; letter-spacing: 0; font-size: 13.5px; }
.ydfz-auth-code {
flex: 0 0 auto; border: none; background: transparent; cursor: pointer;
padding: 13px 14px; font-size: 13px; font-weight: 700; color: var(--blue);
font-family: inherit; white-space: nowrap;
border-left: 1px solid var(--line-soft);
transition: background .16s var(--ease), color .16s var(--ease);
}
.ydfz-auth-code:hover:not(:disabled) { background: var(--blue-soft); }
.ydfz-auth-code:disabled { color: var(--dim); cursor: default; }
.ydfz-auth-submit { width: 100%; margin-top: 4px; }
.ydfz-auth-msg {
font-size: 12px; min-height: 17px; margin: 10px 0 0; line-height: 1.5; color: var(--muted);
}
.ydfz-auth-msg.ok { color: #2e7d32; font-weight: 600; }
.ydfz-auth-msg.err { color: #E65100; }
.ydfz-auth-alt { display: flex; gap: 8px; }
.ydfz-auth-alt .sh-btn { flex: 1; }
.ydfz-auth-wxbtn {
position: relative; display: flex; align-items: center; justify-content: center;
gap: 7px; letter-spacing: .3px;
}
.ydfz-auth-wxico { display: inline-flex; align-items: center; }
.ydfz-auth-wxsub {
position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
font-size: 10.5px; font-weight: 700; line-height: 1;
padding: 4px 7px; border-radius: 999px;
background: rgba(255,255,255,.22); color: #fff; white-space: nowrap;
}
@media (max-width: 380px) { .ydfz-auth-wxsub { display: none; } }
.ydfz-auth-bind-tip {
font-size: 12.5px; color: var(--muted); line-height: 1.75;
margin: 0 0 16px; text-align: left;
background: var(--blue-soft); border-radius: 10px; padding: 11px 13px;
}
@media (prefers-reduced-motion: reduce) {
.ydfz-auth-mask, .ydfz-auth-box { transition: none; }
}