/* Login page - adapted from dl.html */
* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
            background-color: #05070d;
            color: #ffffff;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        /* 3D 动态粒子海浪 Canvas */
        #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* 登录主体容器 */
        .auth-wrapper {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 340px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Logo 区域 */
        .brand-logo {
            margin-bottom: 24px;
            text-align: center;
            user-select: none;
        }

        /* 副标题提示 */
        .section-label {
            width: 100%;
            text-align: left;
            font-size: 13px;
            color: #e0e0e0;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }

        /* 第三方登录卡片 */
        .social-box {
            width: 100%;
            height: 68px;
            background: rgba(58, 62, 68, 0.72);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 4px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0 12px;
            margin-bottom: 28px;
        }

        .social-item {
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            text-decoration: none;
        }

        .social-item:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

        /* 表单区域 */
        .auth-form {
            width: 100%;
        }

        .input-group {
            width: 100%;
            height: 40px;
            background: rgba(58, 62, 68, 0.75);
            backdrop-filter: blur(8px);
            border-radius: 4px;
            display: flex;
            align-items: center;
            margin-bottom: 14px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: border-color 0.2s ease, background-color 0.2s ease;
        }

        .input-group:focus-within {
            border-color: #4b5cc4;
            background: rgba(65, 70, 78, 0.92);
        }

        .input-icon {
            width: 42px;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            color: #7c828d;
            flex-shrink: 0;
        }

        .input-group input {
            flex: 1;
            height: 100%;
            background: transparent;
            border: none;
            outline: none;
            padding: 0 12px;
            color: #ffffff;
            font-size: 13px;
        }

        .input-group input::placeholder {
            color: #8a909b;
        }

        /* 登录/注册主按钮 */
        .submit-btn {
            width: 100%;
            height: 40px;
            background-color: #4657b9;
            color: #ffffff;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 2px;
            cursor: pointer;
            margin-top: 4px;
            transition: background-color 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 4px 14px rgba(70, 87, 185, 0.35);
        }

        .submit-btn:hover {
            background-color: #5466cc;
            box-shadow: 0 6px 18px rgba(84, 102, 204, 0.45);
        }

        .submit-btn:active {
            background-color: #3a499e;
        }

        /* 切换注册/忘记密码链接 */
        .auth-links {
            margin-top: 14px;
            font-size: 12px;
            color: #cccccc;
            text-align: center;
        }

        .auth-links a {
            color: #ffffff;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.2s;
        }

        .auth-links a:hover {
            text-decoration: underline;
        }

        .auth-links .muted-link {
            color: #7c828d;
        }

        .auth-links .muted-link:hover {
            color: #aaaaaa;
        }

        .auth-links .divider {
            margin: 0 4px;
            color: #7c828d;
        }

        /* 底部备案信息 */
        .footer-info {
            margin-top: 32px;
            text-align: center;
            font-size: 11px;
            color: #9e9e9e;
            line-height: 1.9;
        }

        .footer-info a {
            color: #9e9e9e;
            text-decoration: none;
        }

        .footer-info a:hover {
            color: #cccccc;
        }

        .police-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        /* 注册专属字段动画 */
        .register-only {
            display: none;
        }

        .is-register .register-only {
            display: flex;
        }

        /* 提示消息框 */
        .toast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: rgba(70, 87, 185, 0.95);
            color: #fff;
            padding: 8px 20px;
            border-radius: 4px;
            font-size: 13px;
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s ease;
            z-index: 100;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
.auth-error{margin:0 0 14px;padding:10px 12px;border:1px solid rgba(255,107,107,.35);border-radius:4px;background:rgba(210,45,45,.16);color:#ffb4b4;font-size:12px;line-height:1.6}
.auth-info{margin:0 0 14px;padding:10px 12px;border:1px solid rgba(80,170,255,.28);border-radius:4px;background:rgba(50,120,210,.14);color:#b9dcff;font-size:12px}
.register-only{display:none}
.auth-wrapper.is-register .register-only{display:flex}
.home-link{position:fixed;top:18px;right:20px;z-index:2;color:#aeb7c6;font-size:12px;text-decoration:none}
.home-link:hover{color:#fff}
.brand-logo img{height:54px;width:auto;display:block;margin:0 auto;filter:brightness(0) invert(1)}
.social-item .fa{font-size:30px;color:#f2f4f8;line-height:1}
.input-icon .fa{font-size:14px}