/* WordPress 科技感登录注册页面样式 - 注册验证码插件专用 */
/* 使用高特异性选择器避免与其他插件样式冲突 */

/* 表单元素间距优化 */
body.login.tech-login-page p {
    margin-bottom: 28px;
    position: relative;
}

/* 提交按钮容器优化 */
body.login.tech-login-page p.submit {
    margin-top: 35px;
    margin-bottom: 0;
    text-align: center;
}

/* 表单分组视觉效果 */
body.login.tech-login-page p.user-user-wrap,
body.login.tech-login-page p.user-pass-wrap,
body.login.tech-login-page p.user-email-wrap {
    position: relative;
    padding-left: 20px;
}

/* 输入框组左侧装饰线 */
body.login.tech-login-page p.user-user-wrap::before,
body.login.tech-login-page p.user-pass-wrap::before,
body.login.tech-login-page p.user-email-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #00ffff, #ff00ff);
    border-radius: 2px;
    opacity: 0.6;
}

/* 重置默认样式 */
body.login.tech-login-page {
    background: #0a0a0a !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.tech-login-page #login {
    width: 400px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 100;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* 科技背景 */
#tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.tech-particles::before,
.tech-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
    box-shadow: 
        0 0 10px #00ffff,
        100px 200px 0 #ff00ff,
        200px 100px 0 #00ff00,
        300px 300px 0 #ffff00,
        400px 150px 0 #ff0080,
        500px 250px 0 #0080ff;
}

.tech-particles::after {
    animation-delay: -7.5s;
    box-shadow: 
        50px 50px 0 #00ffff,
        150px 150px 0 #ff00ff,
        250px 50px 0 #00ff00,
        350px 200px 0 #ffff00,
        450px 100px 0 #ff0080,
        550px 300px 0 #0080ff;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-100vh) rotate(360deg); }
}

#tech-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 左侧科技元素区域 */
#tech-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 45%;
    height: 100vh;
    z-index: 50;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
}

.tech-logo {
    margin-bottom: 60px;
    text-align: center;
}

.logo-icon {
    position: relative;
    display: inline-block;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #00ffff;
    border-radius: 50%;
    position: relative;
    margin: 0 auto 20px;
    animation: logoRotate 10s linear infinite;
}

.logo-circle::before,
.logo-circle::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #ff00ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: logoRotate 8s linear infinite reverse;
}

.logo-circle::after {
    width: 40px;
    height: 40px;
    border-color: #00ff00;
    animation-duration: 6s;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    letter-spacing: 2px;
}

.tech-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px #00ffff);
}

.feature-text h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.feature-text p {
    color: #cccccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.tech-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    background: rgba(255, 0, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 10px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff;
    margin-bottom: 8px;
}

.stat-label {
    color: #cccccc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 右侧登录表单区域优化 */
.tech-login-page #login {
    margin-left: 55%;
    margin-top: 8vh;
    width: 420px;
    position: relative;
    z-index: 100;
}

body.login.tech-login-page #loginform,
body.login.tech-login-page #registerform,
body.login.tech-login-page #lostpasswordform {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
    border: 2px solid;
    border-image: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00) 1;
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* 表单背景装饰效果 */
body.login.tech-login-page #loginform::before,
body.login.tech-login-page #registerform::before,
body.login.tech-login-page .captcha-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 0, 255, 0.06) 0%, transparent 60%);
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

body.login.tech-login-page #login h1 {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

body.login.tech-login-page #login h1 a {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: none;
    display: block;
    position: relative;
}

/* 标题下方装饰线 */
body.login.tech-login-page #login h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.login.tech-login-page .input,
body.login.tech-login-page input[type="text"],
body.login.tech-login-page input[type="password"],
body.login.tech-login-page input[type="email"] {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

/* 输入框内部光效 */
body.login.tech-login-page .input::placeholder,
body.login.tech-login-page input[type="text"]::placeholder,
body.login.tech-login-page input[type="password"]::placeholder,
body.login.tech-login-page input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

body.login.tech-login-page .input:focus,
body.login.tech-login-page input[type="text"]:focus,
body.login.tech-login-page input[type="password"]:focus,
body.login.tech-login-page input[type="email"]:focus {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    outline: none;
}

body.login.tech-login-page label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* 标签左侧装饰 */
body.login.tech-login-page label::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 2px;
}

body.login.tech-login-page .wp-core-ui .button-primary {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: bold;
    padding: 18px 35px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(255, 0, 255, 0.3);
    width: 100%;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* 按钮内部光效 */
body.login.tech-login-page .wp-core-ui .button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.login.tech-login-page .wp-core-ui .button-primary:hover::before {
    left: 100%;
}

body.login.tech-login-page .wp-core-ui .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

body.login.tech-login-page .wp-core-ui .button-primary:active {
    transform: translateY(0);
}

/* 验证码样式增强 */
.tech-login-page .captcha-field {
    margin: 20px 0;
}

body.login.tech-login-page .captcha-container {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    display: block;
    position: relative;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.login.tech-login-page .captcha-field label {
    margin-bottom: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.login.tech-login-page .captcha-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    position: relative;
    z-index: 1;
}

body.login.tech-login-page .captcha-image-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

body.login.tech-login-page .captcha-input-group .input {
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.5);
}

body.login.tech-login-page .captcha-input-group small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
}

body.login.tech-login-page #captcha-image {
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    width: 120px;
    height: 40px;
    object-fit: contain;
}

body.login.tech-login-page #captcha-image:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

body.login.tech-login-page .captcha-refresh {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.4),
        0 0 10px rgba(255, 0, 255, 0.3);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
    white-space: nowrap;
}

body.login.tech-login-page .captcha-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 255, 255, 0.5),
        0 0 15px rgba(255, 0, 255, 0.4);
}

.tech-login-page #refresh-captcha:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* 隐藏默认的注册和登录链接 */
body.login.tech-login-page #nav {
    display: none;
}

/* 只在登录页面显示忘记密码链接，注册页面隐藏 */
body.login.tech-login-page #nav {
    display: block;
}

body.login.tech-login-page #nav a[href*="action=register"],
body.login.tech-login-page #nav a[href*="wp-login.php"]:not([href*="action="]) {
    display: none;
}

/* 在注册页面完全隐藏导航 */
body.login.tech-login-page.register-page #nav,
body.login.tech-login-page.register-page #nav a {
    display: none !important;
}

/* 忘记密码链接样式优化 */
body.login.tech-login-page #nav a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 255, 255, 0.1);
    display: inline-block;
    margin-top: 15px;
}

body.login.tech-login-page #nav a:hover {
    color: #ffffff;
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px #00ffff;
}

/* 返回博客链接样式 */
body.login.tech-login-page #backtoblog a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    opacity: 0.8;
}

body.login.tech-login-page #backtoblog a:hover {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    opacity: 1;
}

/* 错误消息样式 */
.tech-login-page #login_error,
.tech-login-page .message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    padding: 15px;
    margin-bottom: 20px;
}

.tech-login-page .message {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #51cf66;
}

/* 右侧切换按钮区域 */
#tech-switch-buttons {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    width: 280px;
}

.switch-button-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.switch-button-container h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.tech-login-switch-btn {
    position: absolute;
    top: -70px;
    right: 20px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(255, 0, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
}

.tech-login-switch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

.tech-login-switch-btn:active {
    transform: translateY(-1px);
}

.tech-login-switch-btn.login-btn {
    background: linear-gradient(45deg, #00ffff, #0080ff);
}

.tech-login-switch-btn.register-btn {
    background: linear-gradient(45deg, #ff00ff, #ff0080);
}

.tech-login-switch-btn .btn-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.tech-login-switch-btn .btn-text {
    flex: 1;
    text-align: center;
}

.tech-login-switch-btn .btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.tech-login-switch-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.switch-desc {
    color: #cccccc;
    font-size: 14px;
    margin: 15px 0 0 0;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #tech-sidebar {
        width: 40%;
        padding: 40px 20px;
    }
    
    .tech-login-page #login {
        margin-left: 45%;
        width: 350px;
    }
    
    #tech-switch-buttons {
        right: 20px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    #tech-sidebar {
        display: none;
    }
    
    .tech-login-page #login {
        margin-left: 0;
        margin-top: 5vh;
        width: 90%;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
    }
    
    .tech-login-switch-btn {
        top: -60px;
        right: 50%;
        transform: translateX(50%);
        padding: 12px 20px;
        font-size: 14px;
    }
    
    body.login.tech-login-page #loginform,
    body.login.tech-login-page #registerform,
    body.login.tech-login-page #lostpasswordform {
        padding: 35px 30px;
        border-radius: 15px;
    }
    
    body.login.tech-login-page .captcha-container {
        padding: 15px;
    }
    
    body.login.tech-login-page .captcha-image-group {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    body.login.tech-login-page #captcha-image {
        width: 100px;
        height: 35px;
    }
    
    /* 移动端切换按钮调整 */
    #tech-switch-buttons {
        position: static;
        transform: none;
        width: 90%;
        max-width: 400px;
        margin: 20px auto 0;
        right: auto;
        top: auto;
    }
    
    .switch-button-container {
        padding: 20px 15px;
    }
    
    .switch-button-container h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .tech-switch-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .switch-desc {
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .tech-login-page #login {
        width: 95%;
        margin-top: 2vh;
    }
    
    .tech-login-page #loginform,
    .tech-login-page #registerform,
    .tech-login-page #lostpasswordform {
        padding: 20px 15px;
    }
    
    /* 超小屏幕切换按钮优化 */
    #tech-switch-buttons {
        width: 95%;
        margin-top: 15px;
    }
    
    .switch-button-container {
        padding: 15px 10px;
    }
    
    .switch-button-container h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .tech-switch-btn {
        padding: 10px 15px;
        font-size: 13px;
        gap: 8px;
    }
    
    .tech-switch-btn .btn-icon {
        font-size: 16px;
    }
    
    .tech-switch-btn .btn-arrow {
        font-size: 14px;
    }
    
    .switch-desc {
        font-size: 11px;
        margin-top: 8px;
    }
}
