
/* 页眉登录注册入口样式 */
.auth-modal-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
    height: 0;
    overflow: visible; /* 确保内容不隐藏 */
}

.auth-toggle {
    cursor: pointer;
    margin: 0;
    color: #2b2b2b;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing:0.05em;
    transition: color 0.3s;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    touch-action: manipulation; /* 优化触摸事件 */
}

.auth-toggle:hover {
    color: #999;
}

/* 已登录用户信息 */
.auth-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2b2b2b;
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin: 0; /* 移除默认外边距 */
    padding: 0; /* 移除默认内边距 */
    height: 0;
    overflow: visible; /* 确保内容不隐藏 */
}

.auth-user-info .username {
    font-weight: bold;
}

.auth-user-info .logout {
    color: #2b2b2b !important;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-user-info .logout:hover {
    color: #999 !important;
}

/* 遮罩层样式 */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(5px);
    /* animation: fadeIn 0.3s; */
}
@supports not (backdrop-filter: blur(5px)) {
    .auth-modal-overlay {
        background-color: rgba(0,0,0,0.7); /* 降级处理 */
    }
}

/* 弹窗样式 */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 30px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

/* 关闭按钮 */
.close-modal {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    color: #333;
}

/* 表单样式 */
.auth-form {
    margin-top: 30px;
}

.auth-form h3 {
    margin-top: 0;
    text-align: center;
    color: #2b2b2b;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2b2b2b;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.required {
    color: red;
    margin-left: 3px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    color: #2b2b2b;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.auth-submit, .auth-send-reset-link-submit, .auth-confirm-reset-submit {
    width: 100%;
    padding: 12px;
    background: #2b2b2b;
    color: white;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-submit:hover, .auth-send-reset-link-submit:hover, .auth-confirm-reset-submit:hover {
    background: #999;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 20px;
}

.toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #2b2b2b;
}

.toggle-password:hover {
    color: #333;
}

.dashicons {
    vertical-align: middle;
    font-size: 12px;
    height: 12px;
    width: 20px;
}

.forgot-password {
    float: right;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    top: 0;
    right: 5px;
    cursor: pointer;
}

/* 密码强度指示器 */
/* #password-strength {
    margin-top: 5px;
    font-size: 13px;
} */

.form-error {
    color: #f75454;
    margin-top: 10px;
    display: none;
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

.form-error.success-message {
    color: #388e3c !important; /* 绿色 */
}

/* 动画效果 */
/* @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} */



/* 密码重置相关样式 */
.reset-step {
    transition: all 0.3s ease;
}

.reset-response {
    color: #f75454;
    margin-top: 10px;
    text-align: center;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

.reset-response .reset-success {
    color: #388e3c;
}

.reset-response .reset-loading {
    color: #388e3c;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.form-footer a {
    color: #2b2b2b;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.form-footer a:hover {
    text-decoration: underline;
}

.password-reset-active [data-step="1"] {
    display: none !important;
}
.password-reset-active [data-step="2"] {
    display: block !important;
}
