.home_left{
	background: url("../images/home/home_left28.png");
	background-size: cover;
	height:100%;
	padding:0;
}

body{
	background: url("../images/555.jpg");
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center; /*定义body的元素垂直居中*/
    justify-content: center; /*定义body的里的元素水平居中*/
}

/* 语言切换器固定在页面右上角（组件本身的样式由 i18n.js 注入）。
   body 是 flex 居中布局，fixed 定位的元素不参与排布，不影响登录框居中。 */
.lang-switcher-corner,
.lang-switcher-corner.lang-switcher{
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1050;
}

/* 英文 / 泰文的欢迎标题比中文长很多，原来的 nowrap + 32px 会冲出登录框。
   这两种语言下允许换行、字号略小，并用 text-wrap:balance 让两行长度接近。
   h4 上的 nowrap/字号是内联样式，所以需要 !important；
   限定 >=769px，窄屏继续沿用下面媒体查询里的 20px 方案。 */
@media (min-width: 769px){
	html[lang="en"] #h4_title,
	html[lang="th"] #h4_title{
		white-space: normal !important;
		font-size: 28px !important;
		line-height: 1.35;
		overflow-wrap: break-word;
		text-wrap: balance;
	}
}

/* 登录页被第三方平台以窄 iframe(约320-400px)嵌入时的适配。
   #div_login / #h4_title 的宽度和字号在 home.html 里是内联样式(inline style),
   内联样式的优先级高于普通外部选择器,常规写法无法覆盖，
   所以这里用 !important 在媒体查询内定向覆盖，不影响宽屏下的原有样式。
   断点取 768px，与项目里其他响应式断点（common_index.css/layout.css）保持一致，
   而不是只贴着 iframe 320-400px 的实际宽度设一个更窄的值——否则浏览器窗口只是
   被缩小到 500-768px 之间时（比 iframe 场景更常见）仍会出现同样的挤压变形。*/
@media (max-width: 768px){
	#div_login{
		width: 92% !important;
		max-width: 340px !important;
		padding: 0 8px;
	}
	#h4_title{
		font-size: 20px !important;
		white-space: normal !important;
		line-height: 1.3;
	}
}