@charset "utf-8";
/* ============================================================
   米粒运营平台 · 管理端登录页样式
   2026-09-19 视觉改版：卡片化居中布局、logo 归位、底部品牌条弱化
   说明：结构选择器（#login/.username/.pwd/#layer_revisePasswords 等）
        与 login.js 绑定保持一致，本次仅调整视觉，不改交互契约。
   ============================================================ */

/* ---------- 基础 ---------- */
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
	font-size: 14px;
	color: #1f2d3d;
	text-align: center;
	width: 100%;
	min-height: 100vh;
	background: #0e2238 url(../images/bg_img.jpg) no-repeat center center fixed;
	background-size: cover;
	position: relative;
}

/* 背景遮罩：统一色调、提升表单可读性 */
body::before {
	content: "";
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: -webkit-linear-gradient(top left, rgba(11, 26, 48, .74), rgba(13, 58, 92, .60) 55%, rgba(10, 24, 44, .80));
	background: linear-gradient(135deg, rgba(11, 26, 48, .74), rgba(13, 58, 92, .60) 55%, rgba(10, 24, 44, .80));
	z-index: 0;
	pointer-events: none;
}

div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
	address, big, cite, code, img, ins, kbd, q, s, samp, small, strike,
	strong, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
	caption, tbody, tfoot, thead, tr, th, td, font {
	padding: 0;
	margin: 0;
	list-style-type: none;
	font-style: normal;
}

/* ---------- 布局：卡片居中 ---------- */
.login_content {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
}

.login_content .dispalytable {
	display: -webkit-flex;
	display: flex;
	width: 100%;
	height: 100%;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
}

.login_content .dispaly_table-cell {
	display: block;
	vertical-align: middle;
	-webkit-flex: 1;
	flex: 1;
	min-width: 0;
}

/* 登录卡片 */
.login_content .main_content {
	width: 400px;
	max-width: -webkit-calc(100vw - 32px);
	max-width: calc(100vw - 32px);
	min-height: 0;
	margin: 0 auto;
	padding: 34px 36px 24px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px -12px rgba(6, 24, 44, .45),
		0 8px 24px -10px rgba(6, 24, 44, .35);
	box-sizing: border-box;
	text-align: center;
}

/* ---------- 标题与 logo ---------- */
.login_content .main_content>.slogo {
	color: #1f2d3d;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .5px;
	line-height: 1.4;
	height: auto;
	margin: 0;
	text-align: center;
}

/* 兼容标题内的强调块（历史样式，无内容时不显示） */
.login_content .main_content>.slogo span {
	height: 30px;
	width: 46px;
	position: relative;
	text-align: center;
	display: inline-block;
	vertical-align: middle;
	color: #4c4069;
	font-size: 24px;
	font-family: "mmrtext";
	line-height: 1.8em;
	background: #fff;
	border-radius: 3px;
	margin-left: 8px;
	margin-right: 10px;
	margin-top: -4px;
}

.login_content .main_content>.slogo span:before {
	content: "";
	position: absolute;
	left: -8px;
	top: 3px;
	border: 5px solid transparent;
	border-bottom: 0;
	border-left: 0;
	border-right: 8px solid #fff;
}

/* logo：由 118px 收敛为 60px，圆角 + 轻投影 */
.logina_ico {
	margin-top: 18px;
	line-height: 0;
}

.logina_ico img {
	width: 60px;
	height: 60px;
	max-width: 100%;
	padding: 12px;
	box-sizing: border-box;
	object-fit: contain;
	border-radius: 16px;
	background: -webkit-linear-gradient(top left, #2079b1, #2f9fd6);
	background: linear-gradient(135deg, #2079b1, #2f9fd6);
	box-shadow: 0 10px 20px -8px rgba(32, 121, 177, .6);
}

/* ---------- 表单 ---------- */
.login_main {
	text-align: left;
	margin: 24px 0 0;
	background: none;
	padding: 0;
	outline: none;
}

/* 输入行：浅底圆角，聚焦态高亮 */
.login_main .form_group {
	border: 1px solid #e4e9f0;
	background: #f7f9fc;
	border-radius: 10px;
	margin-top: 16px;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	padding: 0 14px;
	clear: both;
	zoom: 1;
	-webkit-transition: border-color .2s, background .2s, box-shadow .2s;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.login_main .form_group:focus-within {
	background: #fff;
	border-color: #2079b1;
	box-shadow: 0 0 0 3px rgba(32, 121, 177, .12);
}

.login_main .form_group .form_name {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	width: auto;
	background: none;
	padding: 0 12px 0 0;
	margin-right: 12px;
	border-right: 1px solid #e4e9f0;
	color: #64748b;
	font-size: 14px;
	white-space: nowrap;
}

.login_main .form_group .form_name .word_em1 {
	padding-left: .35em;
}

.login_main .form_group .form_name i {
	margin: 0 8px 0 0;
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	background: url(../images/login_input_ico.png) no-repeat;
	opacity: .75;
}

.login_main .form_group .form_name i.user {
	background-position: 0 0;
}

.login_main .form_group .form_name i.password {
	background-position: 0 -20px;
}

.login_main .form_group .form_input {
	position: relative;
	-webkit-flex: 1;
	flex: 1;
	-webkit-box-flex: 1;
	-moz-box-flex: 1;
	-ms-flex: 1;
}

/* 校验失败提示（JS 通过 form_data_off + data-alert 驱动） */
.login_main .form_group .form_input:before {
	display: none;
	content: "";
	position: absolute;
	top: -webkit-calc(100% + 8px);
	top: calc(100% + 8px);
	left: 12px;
	z-index: 2;
	border: 5px solid transparent;
	border-top: 0;
	border-bottom-color: #f56c6c;
}

.login_main .form_group .form_input:after {
	display: none;
	content: attr(data-alert);
	position: absolute;
	top: -webkit-calc(100% + 18px);
	top: calc(100% + 18px);
	left: 0;
	z-index: 2;
	padding: 6px 12px;
	width: auto;
	background: #f56c6c;
	color: #fff;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}

.login_main .form_group .form_data_off:before,
.login_main .form_group .form_data_off:after,
.login_main .form_group .fotm_data_off:before,
.login_main .form_group .fotm_data_off:after {
	display: block;
}

.login_main .form_group .form_input input {
	width: 100%;
	height: 48px;
	border: 0;
	padding: 0 12px;
	background: none;
	color: #1f2d3d;
	font-size: 14px;
	line-height: 48px;
	outline: 0;
	box-sizing: border-box;
}

.login_main .form_group .form_input input::-webkit-input-placeholder {
	color: #9aa7b5;
	opacity: 1;
}

.login_main .form_group .form_input input:-moz-placeholder {
	color: #9aa7b5;
	opacity: 1;
}

.login_main .form_group .form_input input::-moz-placeholder {
	color: #9aa7b5;
	opacity: 1;
}

.login_main .form_group .form_input input:-ms-input-placeholder {
	color: #9aa7b5;
	opacity: 1;
}

/* ---------- 按钮与辅助链接 ---------- */
.login_main .form_submit {
	margin-top: 22px;
}

.login_main .form_submit .submit_btn {
	width: 100%;
	height: 48px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	outline: none;
	border: 0;
	border-radius: 10px;
	background: -webkit-linear-gradient(left, #2079b1, #2f9fd6);
	background: linear-gradient(135deg, #2079b1, #2f9fd6);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 4px;
	text-indent: 4px;
	box-shadow: 0 10px 22px -10px rgba(32, 121, 177, .75);
	-webkit-transition: box-shadow .2s, -webkit-filter .2s;
	transition: box-shadow .2s, filter .2s, transform .12s;
}

.login_main .form_submit .submit_btn:hover {
	-webkit-filter: brightness(1.07);
	filter: brightness(1.07);
	box-shadow: 0 14px 28px -10px rgba(32, 121, 177, .8);
}

.login_main .form_submit .submit_btn:active {
	-webkit-transform: translateY(1px);
	transform: translateY(1px);
}

.form_button {
	margin-top: 14px;
	text-align: center;
}

/* 覆盖 Ace/Bootstrap .btn 默认灰底按钮样式（Ace 主题带 !important，需同级覆盖），保持为文字链接 */
.form_button .btn,
.form_button .btn:focus {
	display: inline-block;
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	padding: 4px 2px;
	color: #2079b1 !important;
	font-size: 13px;
	line-height: 1.4;
	text-shadow: none;
	text-decoration: none;
}

.form_button .btn:hover {
	background: none !important;
	color: #16628f !important;
	text-decoration: underline;
}

/* ---------- 底部品牌条（原全宽大字 logo，改为卡片下方小尺寸弱化条） ---------- */
.login_content .col_footer {
	position: fixed;
	left: 50%;
	bottom: 26px;
	width: 168px;
	height: 38px;
	margin-left: -84px;
	background: url(../images/entrance_logo.png) center no-repeat;
	background-size: contain;
	opacity: .6;
	pointer-events: none;
}

/* ---------- 修改密码弹层 ---------- */
.layer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	z-index: 99;
	width: 100%;
	height: 100%;
	background: rgba(9, 22, 38, .55);
}

.layer .dispaly_table-cell {
	display: -webkit-flex;
	display: flex;
	width: 100%;
	height: 100%;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
}

.layer-centent {
	background: #fff;
	width: 460px;
	max-width: -webkit-calc(100vw - 32px);
	max-width: calc(100vw - 32px);
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px -12px rgba(6, 24, 44, .5);
	text-align: left;
}

.layer_hd {
	line-height: 54px;
	background: none;
	border-bottom: 1px solid #eef2f6;
	color: #1f2d3d;
	padding: 0 20px;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
}

.layer_hd:after {
	content: "";
	display: block;
	clear: both;
	height: 0;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}

.layer_hd .hd_title {
	float: left;
	font-size: 16px;
}

.layer_hd .close_btn {
	float: right;
	width: 20px;
	height: 20px;
	margin-top: 17px;
	cursor: pointer;
	background: url(../images/close_btn.png) center no-repeat;
	background-size: 70%;
	opacity: .45;
	-webkit-transition: opacity .2s;
	transition: opacity .2s;
}

.layer_hd .close_btn:hover {
	opacity: .85;
}

.layer_bd {
	padding: 8px 20px 22px;
}

.layer-centent .item {
	padding: 9px 0;
}

.layer-centent .item:after {
	content: "";
	display: block;
	clear: both;
	height: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

.layer-centent .item .label {
	float: none;
	display: block;
	width: auto;
	line-height: 22px;
	margin: 0 0 6px;
	color: #64748b;
	font-size: 13px;
}

.layer-centent .item .input {
	float: none;
	width: auto;
}

.layer-centent .item .input .inputtext {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #e4e9f0;
	border-radius: 10px;
	background: #f7f9fc;
	color: #1f2d3d;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-transition: border-color .2s, background .2s, box-shadow .2s;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.layer-centent .item .input .inputtext:focus {
	background: #fff;
	border-color: #2079b1;
	box-shadow: 0 0 0 3px rgba(32, 121, 177, .12);
}

.layer-centent .item .word_em1 {
	padding-left: .35em;
}

.submitBtn {
	width: 100%;
	height: 46px;
	padding: 0;
	margin-top: 8px;
	cursor: pointer;
	border: 0;
	border-radius: 10px;
	background: -webkit-linear-gradient(left, #2079b1, #2f9fd6);
	background: linear-gradient(135deg, #2079b1, #2f9fd6);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 10px 22px -12px rgba(32, 121, 177, .8);
}

.submitBtn:hover {
	-webkit-filter: brightness(1.07);
	filter: brightness(1.07);
}

/* ---------- 历史遗留元素（保留以免影响旧逻辑） ---------- */
#updataPwdBox {
	width: 300px;
	height: 200px;
	border: 1px solid #e4e9f0;
	border-radius: 12px;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -150px;
	margin-top: -100px;
	display: none;
	z-index: 999;
	background-color: #fff;
	box-shadow: 0 24px 60px -12px rgba(6, 24, 44, .5);
}

#updataPwdBox .udataPwd {
	margin-left: 9px;
	margin-top: 10px;
}

.btnBox {
	margin: 10px auto;
}

.close {
	margin-left: 10px;
}

.save {
	margin-left: 76px;
}

/* ---------- 字体（历史保留） ---------- */
@font-face {
	font-family: "mmrtext";
	src: url('../fonts/mmrtext.eot'); /* IE9*/
	src: url('../fonts/mmrtext.eot') format('embedded-opentype'),
		/* IE6-IE8 */
  url('../fonts/mmrtext.woff') format('woff'), /* chrome, firefox */
  url('../fonts/mmrtext.ttf') format('truetype'),
		/* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  url('../fonts/mmrtext.svg') format('svg'); /* iOS 4.1- */
	font-weight: normal;
	font-style: normal;
}

.mmrtext {
	font-family: "mmrtext" !important;
	font-size: 16px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   响应式：移动端（max-width 768px）
   ============================================================ */
@media screen and (max-width: 768px) {
	html {
		-webkit-text-size-adjust: 100%;
	}
	body {
		background-attachment: scroll; /* iOS 不支持 fixed, 避免背景错位 */
		background-size: cover;
		-webkit-tap-highlight-color: transparent;
	}
	/* 登录主体: fixed 垂直居中改为文档流, 避免软键盘弹出遮挡输入框 */
	.login_content {
		position: relative; /* 保留文档流，同时让 z-index 生效以位于背景遮罩之上 */
		z-index: 1;
		height: auto;
		min-height: 100vh;
		padding: 28px 16px 40px;
		box-sizing: border-box;
		display: -webkit-flex;
		display: flex;
		-webkit-flex-direction: column;
		flex-direction: column;
		-webkit-justify-content: center;
		justify-content: center;
	}
	.login_content .dispalytable {
		display: block;
		width: auto;
		height: auto;
	}
	.login_content .dispaly_table-cell {
		display: block;
		width: auto;
		-webkit-flex: none;
		flex: none;
	}
	.login_content .main_content {
		width: auto;
		max-width: 400px;
		margin: 0 auto;
		padding: 28px 22px 20px;
		border-radius: 14px;
	}
	.login_content .main_content > .slogo {
		font-size: 19px;
		margin-bottom: 0;
	}
	.logina_ico {
		margin-top: 14px;
	}
	.logina_ico img {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}
	.login_main {
		margin-top: 20px;
	}
	.login_main .form_group {
		padding: 0 12px;
	}
	.login_main .form_group .form_input input {
		height: 46px;
		line-height: 46px;
		font-size: 16px; /* 防止 iOS 聚焦时页面自动放大 */
		-webkit-appearance: none;
		border-radius: 0;
	}
	.login_main .form_submit {
		margin-top: 20px;
	}
	.login_main .form_submit .submit_btn {
		height: 46px;
		font-size: 16px;
		letter-spacing: 3px;
		-webkit-appearance: none;
	}
	.form_button .btn {
		display: inline-block;
		padding: 8px 4px;
	}
	/* 底部品牌条回到文档流 */
	.login_content .col_footer {
		position: static;
		width: 148px;
		height: 34px;
		margin: 22px auto 0;
		left: auto;
		bottom: auto;
	}
	/* 修改密码弹窗自适应 */
	.layer-centent {
		width: 92%;
		max-width: 500px;
		margin: 0 auto;
		max-height: -webkit-calc(100vh - 40px);
		max-height: calc(100vh - 40px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.layer-centent .item .input .inputtext {
		height: 44px;
		font-size: 16px;
		-webkit-appearance: none;
		border-radius: 10px;
	}
	.submitBtn {
		height: 46px;
		padding: 0;
	}
}

/* 横屏且高度较低时压缩装饰区域, 保证登录框完整可见 */
@media screen and (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
	.login_content {
		padding-top: 14px;
	}
	.login_content .main_content > .slogo {
		display: none;
	}
	.logina_ico {
		display: none;
	}
	.login_main {
		margin-top: 0;
	}
	.login_content .col_footer {
		display: none;
	}
}
