/* ========== 小公猫导航登录页样式 ========== */

body.login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: #007ACC;
}

.login.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 左上角Logo */
.login-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.login-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.login-logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* 登录框容器 */
#login {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    margin: auto;
    position: relative;
    z-index: 1;
}

/* 登录表单 - 高度为原来的0.66倍 */
#loginform {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 21px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

#loginform::before {
    content: '欢迎回来';
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
    text-align: left;
}

/* 输入框样式 */
.login .user-pass-wrap,
.login .login-username,
.login .login-password {
    position: relative;
    margin-bottom: 10px;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #333333;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #007ACC;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder,
.login input[type="email"]::placeholder {
    color: #999999;
}

/* 记住我 - 放在 wp-pwd 之前 */
.login .forgetmenot {
    margin-bottom: 10px;
    text-align: left;
}

.login .forgetmenot label {
    color: #666666;
    display: inline;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
}

.login .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #cccccc;
    background: #ffffff;
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
    position: relative;
    margin: 0;
    vertical-align: middle;
}

.login .forgetmenot input[type="checkbox"]:checked {
    background: #007ACC;
    border-color: #007ACC;
}

.login .forgetmenot input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: normal;
}

/* 按钮组 */
.login .form-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.wp-core-ui .button-primary {
    flex: 1;
    padding: 10px 24px;
    background: #007ACC !important;
    border: none !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

.wp-core-ui .button-primary:hover {
    background: #005c99 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.4);
}

.wp-core-ui .button-secondary {
    flex: 1;
    padding: 10px 24px;
    background: #ffffff !important;
    border: 1px solid #007ACC !important;
    border-radius: 8px;
    color: #007ACC !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-core-ui .button-secondary:hover {
    background: #f0f7ff !important;
}

/* 底部链接 */
.login #nav {
    margin-top: 0;
    text-align: center;
    margin-bottom: 16px;
}

.login #nav a {
    color: #666666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login #nav a:hover {
    color: #007ACC;
}

.login #nav span {
    color: #cccccc;
    margin: 0 8px;
}

.login #backtoblog {
    display: none;
}

/* 隐藏默认的提交按钮和导航 */
#loginform > p.submit,
#loginform + #nav {
    display: none;
}

/* 社交登录 */
.login .login-social {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.login .login-social-title {
    color: #999999;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login .login-social-title::before,
.login .login-social-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eeeeee;
}

.login .social-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.login .social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.login .social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.login .social-btn.wechat {
    background: #07C160;
}

.login .social-btn.qq {
    background: #12B7F5;
}

.login .social-btn.weibo {
    background: #E6162D;
}

/* 底部版权信息 */
.aistart-login-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    z-index: 1;
}

/* 提示信息 */
.login .message,
.login .notice,
.login .success,
.login #login_error {
    background: #fff;
    border-left: 4px solid #007ACC;
    border-radius: 8px;
    color: #333;
    padding: 12px;
    margin-bottom: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login .success {
    border-left-color: #10B981;
}

.login #login_error {
    border-left-color: #EF4444;
}

/* 隐藏默认的WordPress Logo */
.login h1,
.login h1 a {
    display: none !important;
}

/* 隐藏语言切换器 */
.login .language-switcher,
.login #language-switcher,
.login form + p + .language-switcher {
    display: none !important;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-logo {
        top: 16px;
        left: 16px;
    }
    
    .login-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    
    .login-logo-text {
        font-size: 20px;
    }
    
    #login {
        padding: 16px;
        max-width: 100%;
    }
    
    #loginform {
        padding: 14px 20px;
    }
    
    #loginform::before {
        font-size: 20px;
    }
    
    .login .form-buttons {
        flex-direction: column;
    }
    
    .aistart-login-footer {
        bottom: 16px;
        font-size: 11px;
        padding: 0 16px;
    }
}
