@charset "utf-8";

.member-form-box {
  /*max-width: 350px;*/
  background: #f1f7fe;
  overflow: hidden;
  border-radius: 16px;
  color: #010101;
  z-index: 1001;
  width: 100%;
}

.member-form {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0px 15px 20px 15px;
  /*gap: 16px;*/
  text-align: center;
}

/*Form text*/
.member-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #454545;
  margin-bottom: 5px;
}

.member-subtitle {
  font-size: 1rem;
  color: #666;
}

.member-form-section {
  padding: 16px;
  font-size: 0.85rem;
  background-color: #e0ecfb;
  box-shadow: rgb(0 0 0 / 8%) 0 -1px;
}

.member-form-section p {
	font-size:1.1em;
}

.member-form-section a {
  font-weight: bold;
  color: #0066ff;
  transition: color .3s ease;
}

.member-form-section a:hover {
  color: #005ce6;
  /*text-decoration: underline;*/
}

/*Button*/
.member-form button {
  background: linear-gradient(45deg, rgb(16, 137, 211) 0%, rgb(18, 177, 209) 100%);
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s ease;
}

/*.member-form button:hover {
  background-color: #005ce6;
}*/

.member-close-btn {
    position: relative;
    display: block;      /* 改为块级元素 */
    text-align: right;   /* 文本右对齐 */
    margin-left: auto;   /* 左侧自动外边距推向右 */
    width: fit-content;  /* 宽度适应内容 */
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    color: #666;
	background: transparent !important; /* 强制透明背景 */
    border: none !important; /* 移除边框 */
    outline: none !important; /* 移除聚焦轮廓 */
    -webkit-tap-highlight-color: transparent !important; /* 禁用移动端高亮 */
    user-select: none; /* 防止文字被选中 */
    transition: color 0.3s;
    padding-right: 15px; /* 添加右侧内边距 */
}

.member-close-btn:hover,
.member-close-btn:active,
.member-close-btn:focus {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: #666; /* 保持颜色不变 */
}

/* 新增的样式 */
.login-method-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
	margin-bottom: 10px;
}

.login-method-tabs .tab {
    padding: 5px 25px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
	font-size: 1.1rem;
}

.login-method-tabs .tab.active {
    color: #2a7bf3;
    /*font-weight: 600;*/
}

.login-method-tabs .tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2a7bf3;
}

/* 统一表单容器宽度 */
.member-form-container {
    width: 100%;
    box-sizing: border-box;
}

/* 短信验证码输入框和按钮的布局 */
.sms-code-wrapper {
    display: flex;
    width: 100%;
    gap: 10px; /* 设置间距 */
}

.sms-code-wrapper .member-input {
    flex: 1; /* 输入框占据剩余空间 */
    min-width: 0; /* 防止flex布局溢出 */
}

.sms-code-wrapper .send-sms-btn {
    width: 120px; /* 固定按钮宽度 */
    flex-shrink: 0; /* 防止按钮被压缩 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 统一输入框样式 */
.member-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
	border-radius: 7px;
	font-size: 1.0rem;
}

/* 调整验证码输入框在密码登录中的样式 */
.rand-code {
    width: 50%; /* 减去验证码图片宽度 */
    display: inline-block;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
	border-radius: 7px;
	font-size: 1.0rem;
	flex: 1; /* 输入框占据剩余空间 */
    min-width: 0; /* 防止flex布局溢出 */
}

.send-sms-btn, .send-sms-register-btn {
    background: #f1f7fe;
    color: #2a7bf3;
    border: 1px solid #2a7bf3;
    border-radius: 4px;
    padding: 7.5px 12px;
    font-size: 0.95rem !important;
    min-height: 37px;
    cursor: pointer;
    transition: all 0.3s;
	font-size: 1.0rem;
}

.rand-btn {
    /*background: #f1f7fe;
    color: #0066ff;
    border: 1px solid #0066ff;
    border-radius: 4px;
    padding: 7.5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
	font-size: 1.0rem;
	margin-bottom: 10px;*/
	background: #f1f7fe;
    color: #2a7bf3;
    border: 1px solid #2a7bf3;
    /*box-shadow: 0 0 0 1px #0066ff;*/ /* 备用边框 */
    border-radius: 4px;
    padding: 7.5px 12px; /* 改用整数 px */
    font-size: 0.95rem; /* 替代 rem */
    min-height: 37px;
    line-height: 1.4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    -webkit-transition: background 0.3s, color 0.3s, border-color 0.3s;
    margin-bottom: 10px;
}

.send-sms-btn:hover {
    /*background: #e0ecfb;*/
}

.register_form{
	display: contents;
	gap: 16px;
}

.member-form-container input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
  color: #333;

}
.member-form-container input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  color: #333;

}
.member-form-container input::-moz-placeholder { /* Mozilla Firefox 19+ */
  color: #333;

}
.member-form-container input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #333;

}

@media screen and (max-width: 375px) {
	.rand-btn {
		padding: 7.5px 5px !important;
		font-size: 0.85rem !important;
	}
	.rand-code{
		width: 54% !important;
	}
	.send-sms-btn{
		font-size: 0.85rem !important;
	}
	.login-method-tabs .tab{
		font-size: 1.0rem !important;
	}
	.member-form-container input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
	  color: #333;
	  font-size: 0.9rem;
	}
	.member-form-container input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
	  color: #333;
	  font-size: 0.9rem;
	}
	.member-form-container input::-moz-placeholder { /* Mozilla Firefox 19+ */
	  color: #333;
	  font-size: 0.9rem;
	}
	.member-form-container input:-ms-input-placeholder { /* Internet Explorer 10-11 */
	  color: #333;
	  font-size: 0.9rem;
	}
}