/* Domain Config - Custom Login Page Styles */

/* 页面背景 - 默认渐变色，如果设置了背景图片会被覆盖 */
body.task-login {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

/* 确保 #layout 不会覆盖背景 */
#layout {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

/* 确保 #layout-content 不会覆盖背景 */
#layout-content {
    background: transparent !important;
}

/* 登录表单容器背景 */
#login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    max-width: 50%;
    width: 100%;
    margin: 0 auto;
}

/* Custom login header/banner */
.custom-login-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
}

.custom-login-header img.custom-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.custom-login-header h1 {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 插入的自定义 footer 容器 - 在 login-form 内部 */
.custom-login-footer-inserted {
    width: calc(100% + 60px);
    margin: 30px -30px -30px -30px;
    padding: 0;
    clear: both;
    box-sizing: border-box;
}

/* 登录表单下方的提示框 */
.custom-notice-box {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.custom-notice-box .notice-icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.custom-notice-box .notice-content h3 {
    margin: 0 0 10px 0;
    color: #1976D2;
    font-size: 18px;
}

.custom-notice-box .notice-content p {
    margin: 5px 0;
    color: #424242;
    line-height: 1.6;
}

/* 备案信息样式 */
.custom-beian {
    text-align: center;
    padding: 20px 30px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.custom-beian p {
    margin: 8px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.custom-beian a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-beian a:hover {
    color: #2196F3;
    text-decoration: underline;
}

.custom-beian .copyright {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.custom-beian img {
    height: 16px;
    vertical-align: middle;
}

/* Optional: Add animation to login button */
#rcmloginsubmit {
    transition: all 0.3s ease;
}

#rcmloginsubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 1200px) {
    #login-form {
        max-width: 60%;
    }
}

@media (max-width: 992px) {
    #login-form {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    #login-form {
        max-width: 90%;
        padding: 20px;
    }

    .custom-login-header {
        padding: 20px 10px;
    }

    .custom-login-header h1 {
        font-size: 18px;
    }

    .custom-login-header img.custom-logo {
        max-width: 150px;
    }

    .custom-notice-box {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .custom-notice-box .notice-icon {
        margin: 0 0 10px 0;
    }

    .custom-beian {
        font-size: 12px;
        padding: 15px 20px;
    }

    .custom-login-footer-inserted {
        width: calc(100% + 40px);
        margin: 20px -20px -20px -20px;
    }
}

@media (max-width: 576px) {
    #login-form {
        max-width: 95%;
        padding: 15px;
    }

    .custom-login-footer-inserted {
        width: calc(100% + 30px);
        margin: 15px -15px -15px -15px;
    }
}