/* WordPress登录页面美化 */
body.login {
    background-image: url('https://cdn.8i5.net/2023/07/laptop-xps-15-9520-pdp-mod-05.png'); /* 替换为你的背景图片 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

/* 登录表单容器 - 毛玻璃效果 */
.login form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18); /* 微妙的边框 */
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}

/* 登录标题 */
.login h1 a {
    background-image: url('https://cdn.8i5.net/2026/03/logo-home.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 80px;
    margin: 0 auto 30px;
    text-indent: -9999px;
    outline: none;
    display: block;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

/* 输入字段 */
.login form .input,
.login form input[type="text"] {
    font-size: 16px;
    padding: 12px 15px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #fff;
}

.login form .input:focus,
.login form input[type="text"]:focus {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 输入占位符样式 */
.login form .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 标签 */
.login label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 按钮 */
.wp-core-ui .button-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(129, 140, 248, 0.9));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    backdrop-filter: blur(5px);
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: linear-gradient(135deg, rgba(91, 92, 240, 0.95), rgba(116, 128, 247, 0.95));
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.wp-core-ui .button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 链接 */
.login #nav a,
.login #backtoblog a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 错误消息 */
.login .message,
.login .success,
.login #login_error {
    border-left: 4px solid #ef4444;
    padding: 12px;
    margin-left: 0;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

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

/* 响应式调整 */
@media (max-width: 500px) {
    .login form {
        padding: 30px 25px;
    }
    
    .login h1 a {
        height: 60px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载指示器 */
.login form .submit .button-primary.loading {
    position: relative;
    overflow: hidden;
}

.login form .submit .button-primary.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}    