/* v1.11.4 子比分栏风：左侧品牌面板 + 右侧表单卡片（仅 wp-login.php 登录页）
   对标子比（Zibll）左右分栏；不修改 WP 核心文件。 */

html,
body.login {
    height: 100%;
}

body.login {
    background: #eef0f3 !important;
    margin: 0 !important;
    padding-left: 46% !important;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---------- 左侧品牌面板（固定左栏） ---------- */
.ql-brand-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 46%;
    z-index: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ql-brand-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.55) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.ql-brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 32px;
    max-width: 420px;
}

.ql-brand-avatar {
    display: inline-flex;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #07c160;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.ql-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ql-brand-avatar i {
    font-style: normal;
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.ql-brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ql-brand-sub {
    margin-top: 8px;
    font-size: 15px;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.ql-brand-tagline {
    margin: 18px auto 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
}

/* ---------- 右侧表单区 ---------- */
#login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    margin: 0 !important;
}

/* 隐藏 WP 默认 logo 文字（站名已在左栏） */
#login h1 {
    display: none !important;
}

.ql-welcome {
    text-align: center;
    color: #555;
    font-size: 15px;
    margin: 0 0 18px;
}

#loginform {
    background: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10) !important;
    padding: 36px 32px !important;
    margin-top: 0 !important;
}

.login label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.login input[type="text"],
.login input[type="password"] {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px 12px 12px 40px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background-color: #fafafa !important;
    background-repeat: no-repeat !important;
    background-position: 13px center !important;
    background-size: 18px 18px !important;
    box-shadow: none !important;
}

.login-username input {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23b3b3b3'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E") !important;
}

.login-password input {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23b3b3b3'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='11'%20width='18'%20height='11'%20rx='2'/%3E%3Cpath%20d='M7%2011V7a5%205%200%200%201%2010%200v4'/%3E%3C/svg%3E") !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #07c160 !important;
    background-color: #fff !important;
    outline: none !important;
}

.forgetmenot {
    margin: 4px 0 18px !important;
    font-size: 13px;
    color: #666;
}

/* 提交按钮：主题绿 */
#wp-submit {
    width: 100% !important;
    float: none !important;
    background: #07c160 !important;
    border-color: #07c160 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 13px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    height: auto !important;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

#wp-submit:hover {
    background: #06ad56 !important;
    border-color: #06ad56 !important;
}

/* 提示框 */
.login .message,
.login .notice {
    border-radius: 10px !important;
    border-left-color: #07c160 !important;
    background: #f7fbf9 !important;
}

.login .error {
    border-radius: 10px !important;
    border-left-color: #e74c3c !important;
    background: #fff0f0 !important;
}

/* 底部链接区低调 */
#nav,
#backtoblog {
    margin: 16px auto 0 !important;
    text-align: center;
    font-size: 13px;
    padding: 0 !important;
}

#nav a,
#backtoblog a {
    color: #07c160 !important;
    text-decoration: none;
}

/* 隐藏 WP 默认语言切换器（私人站不需要） */
body.login .language-switcher {
    display: none !important;
}

/* ---------- 社交登录块 ---------- */
.ql-social {
    margin-top: 22px;
    text-align: center;
}

.ql-social-divider {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    margin: 14px 0;
    position: relative;
}

.ql-social-divider span {
    background: #eef0f3;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.ql-social-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e3e3e3;
}

.ql-social-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ql-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.ql-social-btn svg {
    display: block;
}

.ql-social-btn:hover {
    opacity: 0.92;
}

/* ---------- 响应式：窄屏收起左栏，单栏居中 ---------- */
@media (max-width: 780px) {
    body.login {
        padding-left: 0 !important;
    }

    .ql-brand-panel {
        display: none !important;
    }

    #login {
        padding: 40px 20px;
    }
}
