html { color-scheme: light; }
.jk-auth-page {
    --auth-accent: #0067d9;
    width: 100%;
    max-width: 650px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    background: #f4f5f9;
    color: #1c1d22;
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: 100%;
}
.jk-auth-page *, .jk-auth-page *::before, .jk-auth-page *::after { box-sizing: border-box; }
.jk-auth-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(32px, 8vh, 72px) 22px calc(88px + env(safe-area-inset-bottom, 0px));
}
.jk-auth-card {
    width: 100%;
    max-width: 424px;
    padding: 28px;
    border: 1px solid #e6e8ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(34, 48, 76, .07);
}
.jk-auth-heading { margin-bottom: 23px; }
.jk-auth-badge {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: #e9f2ff;
    color: var(--auth-accent);
}
.jk-auth-brand {
    margin-bottom: 3px;
    color: #606a7d;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.jk-auth-heading h1 { margin: 0; font-size: 29px; line-height: 1.2; letter-spacing: -.025em; }
.jk-auth-field + .jk-auth-field { margin-top: 13px; }
.jk-auth-field label { display: block; margin-bottom: 5px; color: #343c4c; font-size: 13px; font-weight: 600; }
.jk-auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 47px;
    padding: 0 12px;
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    background: #f7f8fa;
    color: #1c1d22;
    font: inherit;
    font-size: 16px;
}
.jk-auth-field input::placeholder { color: #686f7e; }
.jk-auth-field input:focus { border-color: var(--auth-accent); background: #fff; }
.jk-auth-page :focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 2px; }
.jk-auth-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(103px, 136px); align-items: start; gap: 8px; }
.jk-auth-code-image { text-align: center; }
.jk-auth-code-image button {
    display: block;
    width: 100%;
    height: 47px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    background: #eff4fb;
    cursor: pointer;
}
.jk-auth-code-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.jk-auth-code-hint { display: block; margin-top: 5px; color: #606a7d; font-size: 12px; }
.jk-auth-challenge { margin-top: 14px; color: #606a7d; font-size: 13px; }
.jk-auth-page a { color: var(--auth-accent); text-decoration: none; }
.jk-auth-page a:hover { text-decoration: underline; }
.jk-auth-recovery { margin-top: 10px; text-align: right; font-size: 13px; }
.jk-auth-recovery a { display: inline-flex; align-items: center; min-height: 34px; }
.jk-auth-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 14px 0 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.jk-auth-submit:hover { background: #005bc2; }
.jk-auth-switch { margin-top: 16px; color: #626a79; text-align: center; font-size: 14px; }
.jk-auth-switch a { font-weight: 600; }
.jk-auth-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 15px; }
.jk-auth-quick button {
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    background: #fff;
    color: var(--auth-accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.jk-auth-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 650px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    border-top: 1px solid #e8e9ee;
    background: #fff;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .04);
}
.jk-auth-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 62px;
    color: #999;
    font-size: 14px;
    line-height: 1.1;
}
.jk-auth-nav a:hover { text-decoration: none; }
.jk-auth-nav a.active { color: #008cff; }
.jk-auth-nav .icon { font-size: 25px; line-height: 1; }
@media (max-width: 420px) {
    .jk-auth-main { padding: 30px 14px calc(80px + env(safe-area-inset-bottom, 0px)); }
    .jk-auth-card { padding: 21px 17px; border-radius: 20px; }
    .jk-auth-code { grid-template-columns: minmax(0, 1fr) 107px; }
    .jk-auth-nav a { min-height: 56px; font-size: 12px; }
    .jk-auth-nav .icon { font-size: 23px; }
}
