/* ======================== */
/* WordPress 登录页面样式重置 */
/* 保持原有结构，仅修改配色 */
/* ======================== */

/* 整体背景色（原结构不变） */
body.login {
    background-color: #f5f5f5;
}

/* 登录容器（原结构不变） */
#login {
    width: 100%;
    max-width: 350px;
    padding: 5% 0 0;
}

/* Logo区域（保持120x40尺寸不变） */
#login h1 a {
    background-image: url('../assets/images/logo2.png') !important;
    background-size: 120px 40px !important;
    width: 120px !important;
    height: 40px !important;
    /* 新增：深色Logo容器 */
    background-color: transparent;
    margin-bottom: 15px;
}

/* 表单主体（原结构不变） */
.login form {
    border: 1px solid #e4e4e4; /* 改为#999 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: #f5f5f5;
}

/* 输入框样式 */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    border: 1px solid #e4e4e4 !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    font-size: 16px !important;
    padding: 10px !important;
    height: 40px !important;
}
.login *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 自定义聚焦状态（使用您的#666颜色） */
.login input:focus {
    border-color: #666 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2) !important;
}

/* 按钮配色方案 */
.wp-core-ui .button-primary {
    background: #666 !important;
    border-color: #333 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    height: auto;
    padding: 8px 16px;
}
.wp-core-ui .button-primary:hover {
    background: #555 !important;
    border-color: #222 !important;
}
.wp-core-ui .button-primary:focus {
    box-shadow: 0 0 0 1px #999 !important;
}

/* 链接文字颜色 */
.login #nav a,
.login #backtoblog a {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}
.login #nav a:hover,
.login #backtoblog a:hover {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

/* 错误提示框 */
.login .message,
.login #login_error {
    border-left: 4px solid #999;
    background: #f5f5f5;
    color: #333;
}

/* 页脚文字 */
.login #backtoblog,
.login #nav {
    color: #999;
}

.language-switcher {
    display: none !important;
}

/* 响应式微调（保持原结构） */
@media (max-width: 480px) {
    #login {
        padding-top: 20px;
    }
}

/* ======================== */
/* 统一风格 - 登录/注册/个人资料 */
/* ======================== */

/* 基础样式 */
#custom-profile-wrap,
body.login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
#custom-profile-wrap {
    max-width: 400px;
    margin: 10px auto;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
#custom-profile-wrap h1 {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 24px;
    font-size: 18px;
}

/* 表单表格样式 */
#custom-profile-wrap .form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    color: #666;
}

#custom-profile-wrap .form-table th {
    width: 30%;
    padding: 12px 0;
    vertical-align: middle;
    font-weight: 400;
    color: #666;
    font-size: 16px;
    text-align: right;
    padding-right: 10px;
}

#custom-profile-wrap .form-table td {
    padding: 12px 0;
    color: #666;
    font-size: 14px;
    padding-right: 20px;
}

/* 输入框样式 */
#custom-profile-wrap input[type="text"],
#custom-profile-wrap input[type="email"],
#custom-profile-wrap input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.3s;
    height: 40px;
}

#custom-profile-wrap input:focus {
    border-color: #666;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

/* 按钮样式 */
#custom-profile-wrap .submit input {
    width: 100%;
    padding: 12px;
    background: #666;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#custom-profile-wrap .submit input:hover {
    background: #555;
}

/* 描述文字 */
#custom-profile-wrap .description {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* 必填标记 */
.required {
    color: #dc3232;
}

/* 头像上传区域 */
.avatar-upload {
    margin: 15px 0;
    text-align: center;
}

.avatar-preview {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #eee;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-actions {
    margin-top: 10px;
}
/* 密码字段样式 */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.toggle-password:hover {
    color: #333;
}

/* 修改密码区域 */
.password-change-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}
/* 密码修改区域对齐调整 */
.password-change-section .form-table th {
    text-align: right;
    padding-right: 15px;
    width: 100px;
}

/* 表头文字右对齐 */
#custom-profile-wrap .form-table th {
    text-align: right;
    padding: 0 10px;
}

/* 确保所有输入框对齐 */
#custom-profile-wrap .form-table td {
    vertical-align: middle;
}

/* 密码修改区域特殊处理 */
.password-change-section .form-table {
    width: 100%;
    margin: 0;
}

.password-change-section .form-table td {
    padding: 0;
}

.password-change-section .form-table th {
    vertical-align: middle;
}
.change-password-btn {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}

.change-password-btn:hover {
    color: #333;
}

/* 错误提示 */
.error-message {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* 返回链接 */
.return-home {
    text-align: center;
    margin-top: 10px;
}

.return-home a {
    color: #666;
    text-decoration: none;
}

.return-home a:hover {
    color: #333;
    text-decoration: none;
}

.return-home-top {
    color: #666;
    text-decoration: none !important;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.return-home-top:hover {
    color: #333 !important;
    text-decoration: none;
}


/* 密码字段 */
.password-field {
    position: relative;
    margin-bottom: 5px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 35px !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
}

.toggle-password .dashicons {
    width: 15px;
    height: 15px;
    font-size: 10px;

}

.toggle-password:hover {
    color: #333;
}

/* 修改密码按钮 */
.change-password-btn {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    display: inline-block;
}

.change-password-btn:hover {
    color: #333;
}

/* 密码修改区域 */
.password-change-section {
    display: none;
    margin-top: 1px;
}

.password-change-section .form-table {
    margin-top: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.password-change-section th {
    width: 100px !important;
    padding-right: 15px !important;
}

/* 错误提示 */
.error-message {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}


/* 响应式调整 */
@media screen and (max-width: 480px) {
    #custom-profile-wrap {
        padding: 20px;
        margin: 20px auto;
    }
    
    #custom-profile-wrap .form-table th,
    #custom-profile-wrap .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
}

.profile-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    }
    
    .profile-header-actions h1 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    font-size: 20px;
    color: #666;
    font-weight: normal;
    }
    
    .profile-header-actions a,
    .profile-header-actions button {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    }
    
    .profile-header-actions a:hover,
    .profile-header-actions button:hover {
    color: #333;
    text-decoration: underline;
    }
    
    .profile-header-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    }
    
    /* 底部返回链接样式保持一致 */
    .return-home {
    text-align: center;
    color: #666;
    font-size: 14px;
    text-decoration: none !important;
    }
    
    .return-home a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    }
    
    .return-home a:hover {
    color: #333 !important;
    text-decoration: none;
    }

    .profile-header-actions h1 {
        order: 1;
        width: 100%;
        margin: 10px 0;
        font-size: 18px;
    }
    
    .profile-header-actions a:first-child {
        order: 0;
    }
    
    .profile-header-actions button {
        order: 2;
    }
/* 顶部导航栏样式 */
.profile-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: #f5f5f5;
}

/* 密码字段样式 */
.password-field {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-field input {
    padding-right: 35px !important;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* 关闭按钮 - 只有叉图标，靠右对齐 */
.close-page-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #666;
    font-size: 12px;
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-page-btn:hover {
    color: #333;
}

/* Dashicons样式调整 */
.profile-top-nav .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.return-home-top .dashicons {
    margin-right: 5px;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: #0073aa;
}

.button:hover {
    background: #008ec2;
}

.submit-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}