/* login.html：顶栏 QQ/微信 小按钮 + 右上登录卡片（与 home 布局共用 home.css） */

.page-login .top-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.page-login .btn-top-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    margin-left: 4px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
}

.page-login .btn-top-oauth--qq {
    background: #12b7f5;
}

.page-login .btn-top-oauth--qq:hover {
    filter: brightness(1.05);
}

.page-login .btn-top-oauth--wx {
    background: #07c160;
}

.page-login .btn-top-oauth--wx:hover {
    filter: brightness(1.05);
}

.page-login .user-actions {
    flex-wrap: wrap;
    gap: 12px 16px;
}

.page-login .btn-top-recharge {
    padding: 3px 12px;
    border: none;
    border-radius: 4px;
    background: #1e89f7;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.page-login .btn-top-recharge:hover {
    filter: brightness(1.05);
}

/* 右上登录卡片 */
.login-panel-card {
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    box-sizing: border-box;
}

.login-panel-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.login-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s;
}

.login-field:focus-within {
    border-color: #1e89f7;
}

.login-field > i {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
}

.login-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 11px 0;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
    color: #333;
}

.login-field input::placeholder {
    color: #9ca3af;
}

.login-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-login-submit {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 4px;
    background: #1e89f7;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.btn-login-submit:hover {
    filter: brightness(1.06);
}

.btn-login-register {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.btn-login-register:hover {
    border-color: #1e89f7;
    color: #1e89f7;
}

.login-forgot-row {
    margin-bottom: 14px;
}

.login-forgot-row a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.login-forgot-row a:hover {
    color: #1e89f7;
    text-decoration: underline;
}

.login-oauth-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.login-oauth-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    transition: transform 0.15s, filter 0.15s;
}

.login-oauth-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.login-oauth-btn--qq {
    background: linear-gradient(145deg, #2fa6ff 0%, #12b7f5 100%);
}

.login-oauth-btn--wx {
    background: linear-gradient(145deg, #1ed760 0%, #07c160 100%);
}
