/**
 * Te-Xiao Black Theme - WordPress登录页面样式
 */

/* 整体页面样式 */
body.login {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body.login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 142, 142, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 登录容器 */
#login {
    width: 400px;
    padding: 8% 0 0;
    margin: auto;
    position: relative;
}

/* 登录表单 */
#loginform,
#registerform,
#lostpasswordform {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

#loginform::before,
#registerform::before,
#lostpasswordform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e, #ff6b6b);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Logo样式 */
#login h1 {
    text-align: center;
    margin-bottom: 30px;
}

#login h1 a {
    background-image: none !important;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    width: auto !important;
    height: auto !important;
    text-indent: 0 !important;
    overflow: visible !important;
    display: inline-block;
    position: relative;
}

#login h1 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 1px;
}

#login h1 a:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 表单标签 */
#loginform label,
#registerform label,
#lostpasswordform label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* 输入框样式 */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#registerform input[type="text"],
#registerform input[type="password"],
#registerform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"] {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#registerform input[type="text"]:focus,
#registerform input[type="password"]:focus,
#registerform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus,
#lostpasswordform input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
    outline: none !important;
}

#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder,
#loginform input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 登录按钮 */
#wp-submit {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    height: auto !important;
}

#wp-submit:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
}

#wp-submit:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

/* 记住我复选框 */
.forgetmenot {
    margin: 20px 0 !important;
}

.forgetmenot input[type="checkbox"] {
    margin-right: 8px !important;
    transform: scale(1.2) !important;
    accent-color: #ff6b6b !important;
}

.forgetmenot label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

/* 链接样式 */
#nav a,
#backtoblog a,
.privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

#nav a:hover,
#backtoblog a:hover,
.privacy-policy-page-link a:hover {
    color: #ff6b6b !important;
}

#nav,
#backtoblog {
    text-align: center;
    margin-top: 20px;
}

/* 错误消息样式 */
#login_error,
.login .message,
.login .success {
    background: rgba(244, 67, 54, 0.1) !important;
    border: 1px solid rgba(244, 67, 54, 0.3) !important;
    border-radius: 8px !important;
    color: #ff6b6b !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    backdrop-filter: blur(10px) !important;
}

.login .message,
.login .success {
    background: rgba(76, 175, 80, 0.1) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #4CAF50 !important;
}

/* 语言选择器 */
.language-switcher {
    text-align: center;
    margin-top: 20px;
}

.language-switcher select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login {
    animation: fadeInUp 0.8s ease-out;
}

/* 加载状态 */
.wp-core-ui .button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    #login {
        width: 90%;
        padding: 5% 0 0;
    }
    
    #loginform,
    #registerform,
    #lostpasswordform {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    #login h1 a {
        font-size: 24px;
    }
    
    #loginform input[type="text"],
    #loginform input[type="password"],
    #loginform input[type="email"],
    #registerform input[type="text"],
    #registerform input[type="password"],
    #registerform input[type="email"],
    #lostpasswordform input[type="text"],
    #lostpasswordform input[type="email"] {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    #wp-submit {
        font-size: 14px !important;
        padding: 10px 25px !important;
    }
}