/* 全局背景：铺满整个浏览器 */
body {
    background-image: url('assets/logo.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 清除主题容器干扰 */
#page,
#content,
.site-content,
.container,
.wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 登录卡片：红框效果，窄竖版居中 */
.ccl-login-card {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 500px !important;
    background: #ffffff;
    padding: 100px 22px;
    border-radius: 2px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.08);
    z-index: 9999 !important;
    box-sizing: border-box;
}

/* 标题 */
.ccl-title {
    font-size: 26px;
    font-weight: 700;
    color: #001e3c;
    margin: 0 0 22px 0;
    letter-spacing: 0.3px;
    font-family: 'Times New Roman', Times, serif;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccl-title::before,
.ccl-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #69b1ff;
}

/* 错误提示条 */
.ccl-error-notice {
    background: #f8d7da;
    color: #842029;
    padding: 10px 12px;
    border-radius: 3px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ccl-close-error {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #842029;
}

/* 表单组 */
.ccl-form-group {
    margin-bottom: 14px;
}

.ccl-form-group label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccl-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 13px;
    color: #334155;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.2s;
    background: #ffffff;
}

.ccl-input:focus {
    outline: none;
    border-color: #69b1ff;
    box-shadow: 0 0 0 3px rgba(105, 177, 255, 0.15);
    background: #fffddc;
}

/* 浏览器自动填充样式 */
.ccl-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fffddc inset !important;
    -webkit-text-fill-color: #334155 !important;
}

/* 显示密码 */
.ccl-show-pass {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccl-show-pass label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin: 0;
    cursor: pointer;
}

/* 验证码行 */
.ccl-captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.ccl-captcha-img {
    flex: 0 0 70px;
    height: 36px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    color: #334155;
    letter-spacing: 1px;
    font-style: italic;
}

.ccl-captcha-input {
    flex: 1;
}

/* 按钮行 */
.ccl-button-row {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.ccl-btn {
    flex: 1;
    padding: 15px 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.ccl-btn-login {
    background: #f85353;
    color: #ffffff;
}

.ccl-btn-login:hover {
    background: #e63e3e;
}

.ccl-btn-register {
    background: #ffffff;
    color: #f85353;
    border: 1px solid #f85353;
}

.ccl-btn-register:hover {
    background: #fff5f5;
}

/* 底部链接 */
.ccl-bottom-links {
    text-align: center;
    font-size: 11px;
    color: #64748b;
}

.ccl-bottom-links a {
    color: #64748b;
    text-decoration: underline;
}

.ccl-bottom-links a:hover {
    color: #f85353;
}

.ccl-divider {
    margin: 0 6px;
    color: #cbd5e1;
}

/* 响应式 */
@media (max-width: 768px) {
    .ccl-login-card {
        padding: 22px 16px;
        max-width: 80% !important;
    }

    .ccl-title {
        font-size: 22px;
    }
}
