@charset "UTF-8";
/*!
 * xif — 独立登录页
 */

body.xif-auth-page {
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: 100vh;
	margin: 0;
	background: #f2f2f2;
	color: #333;
	font-family: var(--xif-font, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif);
}

.xif-auth {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
}

.xif-auth__card {
	width: 100%;
	max-width: 380px;
	padding: 30px 32px 28px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	box-sizing: border-box;
}

.xif-auth__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.xif-auth__title {
	margin: 0;
	color: #1c1c1c;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.xif-auth__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	background: #d6001c;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 1;
}

.xif-auth__logo {
	max-width: 90px;
	max-height: 46px;
	width: auto;
	height: auto;
}

.xif-auth__form {
	margin: 0;
}

.xif-auth__field {
	margin: 0;
}

.xif-auth__field label {
	display: block;
	margin: 14px 0 6px;
	color: #333;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

.xif-auth__required {
	color: #d6001c;
}

.xif-auth__input {
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #999;
	border-radius: 1px;
	background: #fff;
	color: #1c1c1c;
	font-size: 14px;
	line-height: 36px;
	box-sizing: border-box;
}

.xif-auth__input:focus {
	border-color: #2156a5;
	outline: 2px solid rgba(33, 86, 165, .16);
	outline-offset: 0;
}

.xif-auth__link {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.6;
}

.xif-auth__link a {
	color: #2156a5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xif-auth__link a:hover {
	color: #17407d;
}

.xif-auth__submit {
	margin: 20px 0 0;
}

.xif-auth__submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: #c9c9c9;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: not-allowed;
	text-decoration: none;
}

.xif-auth__submit-btn:not(:disabled) {
	background: #2156a5;
	cursor: pointer;
}

.xif-auth__submit-btn:not(:disabled):hover {
	background: #1a4685;
	color: #fff;
}

.xif-auth__divider {
	margin: 22px 0 16px;
	border-top: 1px solid #e3e3e3;
}

.xif-auth__register {
	margin: 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.6;
}

.xif-auth__register a {
	color: #2156a5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xif-auth__error {
	margin: 0 0 12px;
	padding: 8px 10px;
	border-left: 3px solid #c00;
	background: #fdecec;
	color: #a00;
	font-size: 12px;
	line-height: 1.7;
}

.xif-auth__logged p {
	margin: 0 0 16px;
	color: #333;
	font-size: 13px;
	line-height: 1.8;
}

.xif-auth__logged-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.xif-auth__ghost-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 120px;
	height: 40px;
	border: 1px solid #2156a5;
	border-radius: 1px;
	color: #2156a5;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.xif-auth__ghost-btn:hover {
	background: #f2f6fc;
	color: #17407d;
}

.xif-auth__logged .xif-auth__submit-btn {
	flex: 1 1 120px;
	width: auto;
	background: #2156a5;
	cursor: pointer;
}

.xif-auth-footer {
	margin-top: auto;
	padding: 18px 20px 26px;
	text-align: center;
	color: #666;
	font-size: 11px;
	line-height: 1.8;
}

.xif-auth-footer__text {
	margin: 0 0 4px;
}

.xif-auth-footer__links {
	margin: 0;
}

.xif-auth-footer__links a {
	color: #555;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.xif-auth-footer__links a:hover {
	color: #2156a5;
}

.xif-auth-footer__sep {
	margin: 0 4px;
	color: #bbb;
}

.xif-auth-footer__copy {
	margin-left: 4px;
	color: #666;
}

/* 已登录时顶部管理条 */
.admin-bar .xif-auth {
	padding-top: 80px;
}

@media (max-width: 480px) {
	.xif-auth {
		padding: 30px 16px;
	}

	.xif-auth__card {
		padding: 24px 22px;
	}

	.xif-auth__title {
		font-size: 20px;
	}
}
