/* 登录、注册和找回密码页面统一样式 */

/* 统一表单容器样式 */
.sign,
.resetpassword-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 找回密码表单容器特定样式 */
.resetpassword-form-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 360px;
    margin: 0 auto;
    text-align: center;
}

/* 统一标题样式 */
.sign form h4,
.modal-header .modal-title,
.resetpassword-form-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    padding: 20px 20px 0 20px;
}

/* 统一表单内容区域样式 */
.sign form,
.modal-body,
.resetpassword-form-container form {
    padding: 0 20px 20px 20px;
}

/* 找回密码表单内容左对齐 */
.resetpassword-form-container form {
    text-align: left;
}

/* 统一表单项样式 */
.sign form .-item,
.form-group,
.resetpassword-form-container form .-item {
    margin-bottom: 15px;
}

/* 统一标签样式 */
.resetpassword-form-container form .-item label,
.form-group label,
.sign form .-item label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

/* 归档和分类页面文字样式调整 */
.archive .widget h2,
.category .widget h2,
.tag .widget h2,
.author .widget h2,
.search .widget h2 {
    padding-left: 10px !important;
}

.archive .widget li,
.category .widget li,
.tag .widget li,
.author .widget li,
.search .widget li {
    padding-left: 10px !important;
}

/* 统一输入框样式 */
.sign form .ipt,
.form-control,
.resetpassword-form-container form .ipt {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.sign form .ipt:focus,
.form-control:focus,
.resetpassword-form-container form .ipt:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 统一验证码输入组样式 */
.sign form .-item.-item-yzm {
    position: relative;
}

.resetpassword-form-container form .-item.-item-yzm {
    position: relative;
    width: 100%;
}

/* 确保验证码标签单独占据一行 */
.resetpassword-form-container form .-item.-item-yzm label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
    width: 100%;
}

/* 验证码输入框 */
.resetpassword-form-container form .-item.-item-yzm input {
    display: inline-block;
    width: 60%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin-right: 10px;
    vertical-align: middle;
}

/* 验证码按钮 */
.resetpassword-form-container form .-item.-item-yzm .btn {
    display: inline-block;
    width: 30%;
    margin-left:5%;
    padding-left: 10px !important;
    padding-right: 10px !important;
    height: 38px;
    background-color: #1f8bff !important;
    border-color: #1f8bff !important;
    color: #fff !important;
    text-align: center;
    vertical-align: middle;
}

/* 验证码提示信息 */
.resetpassword-form-container form .-item.-item-yzm #captcha-tip {
    display: block;
    margin-top: 5px;
}

/* 注册窗口验证码样式 */
.sign form .-item.-item-yzm input {
    padding-right: 27%;
    padding-top: 3%;
}

.sign form .-item.-item-yzm .btn {
    position: absolute;
}

/* 注册窗口验证码按钮和输入框特定样式 */
.sign .-up .-item.-item-yzm {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sign .-up .-item.-item-yzm label {
    position: absolute;
    top: 0;
    left: 0;
}

.sign .-up .-item.-item-yzm input.ipt {
    width: 60%;
    padding-right: 15px;
    margin-top: 24px;
}

.sign .-up .-item.-item-yzm .btn.signcaptcha-loader {
    width: 30% !important;
    margin-left: 5% !important;
    position: static;
    height: 38px;
    margin-top: 24px;
    background-color: #1f8bff !important;
    border-color: #1f8bff !important;
    color: #fff !important;
    text-align: center;
    display: inline-block;
}

.sign .-up .-item.-item-yzm .btn.signcaptcha-loader:hover,
.resetpassword-form-container form .-item.-item-yzm .btn:hover {
    background-color: #176fd8 !important;
    border-color: #176fd8 !important;
}

.input-group {
    display: table;
    width: 100%;
}

.input-group > input {
    display: table-cell;
    width: 100%;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-group-btn {
    display: table-cell;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

/* 统一按钮样式 */
.sign form .sign-submit,
.form-group:last-child,
.resetpassword-form-container form .sign-submit {
    margin-top: 20px;
}

.btn,
.sign form .btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary,
.sign form .btn.btn-primary {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover,
.sign form .btn.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-primary:disabled,
.sign form .btn.btn-primary:disabled {
    background-color: #95a5a6;
    border-color: #95a5a6;
    cursor: not-allowed;
}

.btn-block,
.sign form .btn.btn-block {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
}

.btn-default,
.sign form .btn.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ddd;
}

.btn-default:hover,
.sign form .btn.btn-default:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

/* 统一提示信息样式 */
.text-success,
.text-danger {
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.text-danger {
    color: #e74c3c;
}

/* 统一密码重置步骤样式 */
.resetpasssteps {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.resetpasssteps li {
    position: relative;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.resetpasssteps li.active {
    color: #3498db;
    font-weight: bold;
}

.resetpasssteps li:not(:last-child):after {
    content: " ";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ddd' d='M5.5 12a.5.5 0 0 1-.5-.5V2.707l-2.146 2.147a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L6 2.707V11.5a.5.5 0 0 1-.5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.resetpasssteps li.active:not(:last-child):after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233498db' d='M5.5 12a.5.5 0 0 1-.5-.5V2.707l-2.146 2.147a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L6 2.707V11.5a.5.5 0 0 1-.5.5z'/%3E%3C/svg%3E");
}

/* 统一Thickbox弹窗样式 */
#TB_window {
    background: transparent !important;
    box-shadow: none !important;
}

#TB_window #TB_title {
    display: none;
}

#TB_window #TB_closeWindowButton {
    top: 10px;
    right: 10px;
    color: #999;
    font-size: 24px;
}

#TB_window #TB_closeWindowButton:hover {
    color: #333;
}

/* 隐藏原来的内联样式，使用我们的统一样式 */
#resetpassword-style {
    display: none !important;
}

/* 隐藏登录/注册表单中的切换按钮和找回密码链接 */
.sign .-in h4 .signup-loader,
.sign .-in .-item a,
.sign .-up h4 .signin-loader {
    display: none !important;
}