/*
 * LinsGeek ERP —— 登录 / 注册 / 忘记密码页：手机与平板排版
 * 原页面左半边大插图（.loginLeftImg）+ 右半边表单；窄屏时插图会叠在表单上方占满一屏。
 * 窄屏（< 1024px）：隐藏大插图，表单占满宽度，顶部换成品牌色渐变；只改排版，表单和按钮逻辑不变。
 * 回滚：删除本文件。
 */
@media (max-width: 1023px) {
  #app .loginLeftImg { display: none !important; }
  #app div:has(> .loginLeftImg) { flex-wrap: nowrap !important; }
  #app .loginLeftImg ~ div {
    width: 100% !important; max-width: 100% !important; min-height: 100vh;
    flex: 1 1 auto !important; flex-direction: column; align-items: center;
    padding: 0 16px 24px; box-sizing: border-box;
    background: linear-gradient(180deg, #e7f2f0 0, #f7faf9 220px, #fff 420px) !important;
  }
  /* 右上角语言切换 */
  #app .loginLeftImg ~ div .loginRight { padding: 14px 4px 0 !important; justify-content: flex-end !important; }
  /* LOGO + 标语 */
  #app .loginLeftImg ~ div > .flex.flex-col.justify-center.items-center { margin: 12px 0 28px !important; text-align: center; }
  #app .loginLeftImg ~ div > .flex.flex-col.justify-center.items-center .icon-linsgeeklogo { font-size: 42px !important; max-width: 100%; }
  #app .loginLeftImg ~ div > .flex.flex-col.justify-center.items-center > div { font-size: 15px !important; line-height: 1.6; padding: 0 8px; }
  /* 表单卡片 */
  #app .loginLeftImg ~ div > .flex.justify-center.items-center { margin-bottom: 28px !important; width: 100%; }
  #app .loginLeftImg ~ div .registeY,
  #app .loginLeftImg ~ div [class*="w-[440px]"],
  #app .loginLeftImg ~ div [class*="w-[400px]"] {
    width: 100% !important; max-width: 440px; box-sizing: border-box;
    background: #fff; border-radius: 18px; padding: 22px 18px 18px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -26px rgba(13,123,109,.45);
  }
  #app .loginLeftImg ~ div .el-form-item { margin-bottom: 18px; }
  #app .loginLeftImg ~ div .el-input__wrapper { min-height: 44px; }
  #app .loginLeftImg ~ div .el-button { min-height: 44px; }
  /* 验证码输入框 + 发送按钮：同一行 */
  #app .loginLeftImg ~ div .el-form-item__content:has(.el-button) { flex-wrap: nowrap !important; gap: 8px; }
  #app .loginLeftImg ~ div .el-form-item__content:has(.el-button) > .el-input { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
  #app .loginLeftImg ~ div .el-form-item__content:has(.el-button) > .el-button {
    flex: 0 0 auto !important; width: auto !important; max-width: none !important; margin: 0 !important;
    height: 44px !important; padding: 0 14px !important; border-radius: 12px !important;
  }
  #app .loginLeftImg ~ div .el-form-item__content:has(.el-button) > .el-button * { width: auto !important; max-width: none !important; margin: 0 !important; white-space: nowrap; }
  /* 提交按钮（登录 / 重置密码 / 完成注册）：和电脑端一样占满宽度 */
  #app .loginLeftImg ~ div .el-form-item__content:not(:has(.el-input)) > .el-button,
  #app .loginLeftImg ~ div .el-form-item__content:not(:has(.el-input)) > .el-button * {
    width: 100% !important; max-width: none !important; margin-left: 0 !important;
  }
  #app .loginLeftImg ~ div .el-form-item__content:not(:has(.el-input)) > .el-button { height: 48px !important; border-radius: 999px !important; font-size: 16px; }
  #app .loginLeftImg ~ div .el-form-item__content:not(:has(.el-input)) > .el-button * { display: flex; justify-content: center; align-items: center; text-align: center; }
  /* 页脚 */
  #app .loginLeftImg ~ div footer { position: static !important; margin-top: auto; padding-top: 8px; }
  #app .loginLeftImg ~ div footer > div { flex-wrap: wrap; row-gap: 4px; text-align: center; }
}
