/*
 * Engreen 账户页（登录 / 注册 / 找回密码）
 * 复刻原 Wechat Social Login 的 .xh-regbox 卡片样式（social.css），类名改为 eg-*。
 */

/* WooCommerce 自带的 form.login / form.register 边框内边距，会在卡片里再套一层框。
   Woo 的选择器是 .woocommerce form.login，这里多带一层 .woocommerce 压过它 */
.woocommerce .eg-account form.login,
.woocommerce .eg-account form.register,
.woocommerce .eg-account form.lost_reset_password {
	border: 0;
	padding: 0;
	margin: 20px 0 0;
	border-radius: 0;
}

.eg-regbox {
	width: 400px;
	max-width: 100%;
	margin: 20px auto;
	background: #fff;
	border: 1px solid #eee;
	padding: 40px 25px;
	font-family: "Microsoft Yahei UI", "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
	font-size: 0.875em;
}
.eg-regbox *,
.eg-regbox *::before,
.eg-regbox *::after {
	box-sizing: border-box;
}
.eg-regbox .eg-title {
	text-align: center;
	font-size: 150%;
}
.eg-regbox .eg-hint {
	color: #777;
	margin: 0 0 15px;
}
.eg-regbox .eg-form-group {
	margin-bottom: 15px;
	position: relative;
}
.eg-regbox label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 5px;
	font-weight: 700;
}
.eg-regbox .required::after {
	content: "*";
	color: #ed1c24;
}
.eg-regbox .form-control {
	display: block;
	width: 100%;
	height: 35px;
	padding: 6px 12px;
	margin: 0;
	color: inherit;
	font: inherit;
	line-height: normal;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* 输入框 + 右侧按钮/图片（验证码行） */
.eg-regbox .eg-input-group {
	display: table;
	width: 100%;
	border-collapse: separate;
	margin-bottom: 15px;
}
.eg-regbox .eg-input-group .form-control {
	display: table-cell;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.eg-regbox .eg-input-group-btn {
	display: table-cell;
	width: 1%;
	white-space: nowrap;
	vertical-align: middle;
	font-size: 0;
}
/* 验证码格子要写死宽度：主题全局 img{max-width:100%} 在 1% 宽的表格单元里会把图片压没 */
.eg-regbox .eg-captcha-cell {
	width: 96px;
}
.eg-regbox .eg-captcha-img {
	display: block;
	width: 96px;
	max-width: none;
	height: 35px;
	border: 1px solid #ddd;
	background: #f5f8f5;
	cursor: pointer;
}
.eg-regbox .eg-input-group-btn .eg-btn {
	height: 35px;
	margin-left: -1px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: none;
}

.eg-regbox .eg-btn {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 3px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
	user-select: none;
}
.eg-regbox .eg-btn[disabled] {
	cursor: default;
	opacity: .65;
}
.eg-regbox .eg-btn-block {
	display: block;
	width: 100%;
}
.eg-regbox .eg-btn-lg {
	padding: 10px 16px;
	font-size: 18px;
	line-height: 1.33;
}
.eg-regbox .eg-btn-primary,
.eg-regbox .eg-btn-primary:hover,
.eg-regbox .eg-btn-primary:focus {
	color: #fff;
	background-color: #009a61;
	border-color: #008151;
}
.eg-regbox .eg-btn-default {
	color: #333;
	background-color: #fff;
	border-color: #ccc;
}

.eg-regbox .eg-send-code-msg {
	margin: -8px 0 12px;
	font-size: 12px;
	min-height: 0;
}
.eg-regbox .eg-send-code-msg.is-ok { color: #3c763d; }
.eg-regbox .eg-send-code-msg.is-err { color: #a94442; }

/* WooCommerce 的隐私说明与密码强度提示放进卡片后的字号 */
.eg-regbox .woocommerce-privacy-policy-text,
.eg-regbox .woocommerce-password-strength,
.eg-regbox .woocommerce-password-hint {
	font-size: 12px;
	color: #777;
}

.eg-user-register {
	margin: 30px 0 80px;
	color: #ddd;
	text-align: center;
}
.eg-user-register a {
	margin: 0 10px;
	color: #999;
}

@media (max-width: 767px) {
	.eg-regbox {
		width: 85%;
	}
}
