/* =========================================================
   小六壁纸 · 登录 / 注册页
   ========================================================= */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 20px 48px;
    background-color: #f6f6f7;
    background-image: radial-gradient(1000px 520px at 50% -8%, #ffffff 0%, rgba(255, 255, 255, 0) 62%);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111214;
    -webkit-font-smoothing: antialiased;
}

.auth-brand {
    position: fixed;
    top: 22px;
    left: 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #111214;
    text-decoration: none;
    letter-spacing: .01em;
    z-index: 10;
}
.auth-brand i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: #e5242b;
    display: inline-block;
}
.auth-brand:hover { color: #111214; }

body .box {
    width: 100%;
    max-width: 404px;
    margin: 0;
    padding: 34px 30px 24px;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(17, 18, 20, .07), 0 2px 6px rgba(17, 18, 20, .03);
}

body .box h2 {
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .01em;
    margin: 0 0 24px;
    color: #111214;
}

body .box .item {
    margin-bottom: 16px;
}

body .box label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5b5f66;
    margin-bottom: 7px;
}

body .box input[type="text"],
body .box input[type="password"],
body .box input[type="email"],
body .box input:not([type]) {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #111214;
    background: #fafafa;
    border: 1px solid #e6e6ea;
    border-radius: 10px;
    outline: none;
    transition: background .18s, border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
}

body .box input::placeholder { color: #b3b6bc; }

body .box input:focus {
    background: #fff;
    border-color: #111214;
    box-shadow: 0 0 0 3px rgba(17, 18, 20, .06);
}

body .box .btn {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: #111214;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .18s, transform .18s, box-shadow .18s;
}
body .box .btn:hover {
    background: #000;
    box-shadow: 0 10px 24px rgba(17, 18, 20, .16);
}
body .box .btn:active { transform: translateY(1px); }

body .box .tip {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    background: #fff5f5;
    border: 1px solid #ffd9d9;
    color: #c02424;
}
body .box .tip.success {
    background: #f2fbf5;
    border-color: #cfead9;
    color: #1c7c3f;
}

body .box .hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9b9ea4;
    line-height: 1.4;
}

body .box .required { color: #e5242b; }

body .box .link,
body .box .forgot-link {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #9b9ea4;
}
body .box .forgot-link { margin-top: 12px; text-align: right; }
body .box .link a,
body .box .forgot-link a {
    color: #111214;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #d6d6da;
}
body .box .link a:hover,
body .box .forgot-link a:hover { text-decoration-color: #111214; }

body .box .captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
body .box .captcha-row input { flex: 1; min-width: 0; }
body .box .captcha-row img {
    height: 44px;
    width: 108px;
    border-radius: 10px;
    border: 1px solid #e6e6ea;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
    background: #fafafa;
}
body .box .captcha-refresh {
    width: 30px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9b9ea4;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
}
body .box .captcha-refresh:hover { color: #111214; }

body .box .email-code-row {
    display: flex;
    gap: 8px;
}
body .box .email-code-row input { flex: 1; min-width: 0; }
body .box .send-code-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e6e6ea;
    background: #fff;
    color: #111214;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
    white-space: nowrap;
}
body .box .send-code-btn:hover { border-color: #c9c9cf; background: #fafafa; }
body .box .send-code-btn:disabled { color: #b3b6bc; cursor: not-allowed; }

body .box .password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: #f0f0f2;
    overflow: hidden;
}
body .box .password-strength .bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #e5242b;
    transition: width .25s ease, background .25s ease;
}

body .box .footer-copyright {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f2;
    text-align: center;
    font-size: 12px;
    color: #b3b6bc;
    line-height: 1.5;
}

@media (max-width: 480px) {
    body { padding: 64px 14px 28px; }
    .auth-brand { top: 16px; left: 16px; }
    body .box { padding: 28px 20px 20px; border-radius: 16px; }
    body .box h2 { font-size: 19px; margin-bottom: 20px; }
}
