/* ===================================================================
   认证页（登录 / 验证码登录 / 注册 / 忘记密码 / 邮箱注册）响应式优化
   仅在认证页引入，桌面端沿用 registered.css，本文件负责窄屏与移动端
   =================================================================== */

/* ---------- 平板 / 窄桌面：右侧卡片内收，避免贴边或溢出 ---------- */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    .registered-box {
        right: 6%;
    }
}

/* ---------- 移动端（含小屏手机） ---------- */
@media screen and (max-width: 768px) {
    /* 隐藏整张大背景图，改用柔和浅色背景 */
    .bg {
        display: none !important;
    }
    body {
        background: #f2f5f9;
        min-height: 100vh;
        height: auto;
    }

    /* 卡片：取消绝对定位，改为流式居中，宽度自适应、高度随内容 */
    .registered-box {
        position: relative !important;
        width: 92% !important;
        max-width: 420px !important;
        height: auto !important;
        margin: 36px auto !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        padding: 28px 22px !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box;
        transform: none;
    }

    .registered-box h3 {
        font-size: 21px;
        margin-bottom: 24px !important;
    }

    /* content 容器保持块级，不参与 flex（避免内部表单行被压缩） */
    .registered-box .content {
        display: block !important;
        width: 100%;
    }

    /* 每个表单行：图标 + 输入框水平 flex 排列 */
    .registered-box > div:not(.content),
    .registered-box .login,
    .registered-box .content > div {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        box-sizing: border-box;
    }

    /* 图标不再绝对定位，作为 flex 项 */
    .registered-box .phone-img,
    .registered-box .name-img {
        position: static !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 10px 0 2px !important;
        flex: 0 0 auto !important;
    }

    /* 输入框占满剩余空间，去掉为绝对定位图标预留的左内边距 */
    .registered-box div input {
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        line-height: 38px;
    }

    /* 验证码输入框：与发送按钮同行 */
    .registered-box div input.password {
        width: auto !important;
        flex: 1 1 auto !important;
    }
    .registered-box div .code {
        flex: 0 0 auto !important;
        margin-left: 10px !important;
        white-space: nowrap;
    }

    /* 提交按钮占满整行 */
    .registered-box .submit,
    .registered-box .submit01 {
        width: 100% !important;
        margin-top: 8px !important;
    }

    /* 底部切换链接居中 */
    .registered-box .zc-btn {
        text-align: center !important;
        font-size: 14px;
    }

    /* 协议勾选行 */
    .registered-box label {
        display: flex !important;
        align-items: center !important;
        padding-left: 0 !important;
        font-size: 14px;
        margin-top: 14px !important;
    }
    .registered-box label input {
        width: 14px !important;
        flex: 0 0 auto !important;
        margin-right: 6px !important;
    }

    /* 注册页顶部切换标题栏 */
    .registered-box .i35-title {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    .registered-box .i35-title li {
        padding: 10px !important;
        font-size: 16px !important;
    }
}
