/**
 * 自定义登录/注册页面样式
 */

/* 基础样式 */
body, 
body.blog, 
body.wp-theme-heai, 
body.auth-page {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Helvetica, Arial, sans-serif;
    margin: 0;
    background: #f6f7f9;
    color: #333;
    line-height: 1.6;
}

/* 页面容器 */
.auth-container {
    max-width: 480px;
    margin: 5vh auto;
    padding: 20px;
}

.wrap {
    width: 100%;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* 已登录提示样式 */
.auth-already-logged-in {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-already-logged-in-inner {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    padding: 30px;
    text-align: center;
}

.auth-already-logged-in h2 {
    margin: 20px 0 15px;
    font-size: 22px;
    color: #333;
}

.auth-already-logged-in p {
    margin-bottom: 25px;
    color: #555;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(var(--theme-rgb), .20);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background: rgba(var(--theme-rgb), .28);
}

.btn-secondary {
    background: rgba(var(--theme-rgb), .10);
    color: #333;
}

.btn-secondary:hover {
    background: rgba(var(--theme-rgb), .18);
}

/* 认证页头部 */
.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo-link {
    text-decoration: none;
    display: inline-block;
}

/* 标题样式 */
h1 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* 印章风格Logo */
.auth-logo {
    display: block;
    width: 40px;
    height: 80px;
    margin: 0 auto 20px;
    font-family: KaiTi, "楷体", SimKai, "华文楷体", serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border: 1px solid rgba(var(--theme-rgb), 0.7);
    border-radius: 2px;
    padding: 8px 5px;
    background-color: rgba(var(--theme-rgb), 0.08);
    background-image: radial-gradient(rgba(var(--theme-rgb), 0.12) 1px, transparent 1px);
    background-size: 8px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    text-align: center;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* 横向Logo覆盖样式 */
.auth-logo-horizontal {
    writing-mode: horizontal-tb !important;
    text-orientation: initial !important;
    width: auto !important;
    height: auto !important;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    display: inline-block;
}

/* 表单字段 */
.field {
    margin: 16px 0;
}

.field label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #444;
}

.wrap .field input, 
.wrap .field select, 
.wrap .field textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d0d5dd !important;
    border-radius: 6px;
    font-size: 14px;
    background: #fff !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.wrap .field input:focus, 
.wrap .field select:focus, 
.wrap .field textarea:focus {
    outline: 0;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-rgb), 0.15);
}

/* 按钮样式 */
.btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: rgba(var(--theme-rgb), .20);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: rgba(var(--theme-rgb), .28);
}

/* 链接样式 */
.link {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 消息提示 */
.heai-msg {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.heai-msg-info {
    background: #f0f7ff;
    color: #1e5eff;
    border-left: 3px solid #1e5eff;
}

.heai-msg-error {
    background: #fff0f0;
    border-left: 3px solid #ff6b6b;
    color: #d63031;
}

/* 提示框 */
.tips {
    background: #fffef0;
    border: 1px dashed #e6deb0;
    border-radius: 6px;
    padding: 12px 15px;
    color: #8c7e3d;
    font-size: 14px;
    margin: 12px 0 18px;
    line-height: 1.5;
}

/* 次要文本 */
.muted {
    color: #666;
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
}

.muted a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.muted a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 记住我复选框 */
.field input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
}

.field input[type="checkbox"] + label {
    display: inline;
    font-size: 14px;
    color: #555;
}

/* 页脚样式 */
.auth-footer {
    max-width: 480px;
    margin: 30px auto;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.footer-copyright {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.info-link {
    display: inline-block;
    color: #ff6b9a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #ff4785;
    transform: translateY(-2px);
}

.auth-site-logo {
    display: inline-block;
    margin-left: 2px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-site-logo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-motto {
    font-style: italic;
    margin-bottom: 5px;
}

/* 捐款弹窗样式 */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.info-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 500px;
    position: relative;
}

.info-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.info-close:hover {
    color: #555;
}

.info-modal h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.info-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.info-qr {
    text-align: center;
    margin-bottom: 20px;
}

.info-qr img {
    max-width: 150px;
    height: auto;
    border: 1px solid #eee;
}

.info-other {
    flex: 1;
    min-width: 200px;
    padding-left: 20px;
}

.info-other ul {
    padding-left: 20px;
    margin: 10px 0;
}

.info-other li {
    margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
        margin: 3vh auto;
    }
    
    .wrap {
        padding: 20px;
    }
    
    .auth-already-logged-in {
        min-height: 70vh;
    }
    
    .auth-already-logged-in-inner {
        padding: 20px;
    }
    
    .auth-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-modal-content {
        margin: 15% auto;
        padding: 15px;
        width: 85%;
    }
    
    .info-options {
        flex-direction: column;
    }
}