/**
 * OCPX传媒系统登录页面样式
 * Gentelella风格设计
 */

html {
    height: 100%;
}

body.signin {
    height: 100%;
    background: linear-gradient(135deg, #2A3F54 0%, #1a2a3a 100%) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.signinpanel {
    width: 100%;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.signinpanel .row {
    display: flex;
    align-items: stretch;
    flex: 1;
    margin: 0;
    background: transparent;
}

/* 左侧信息区域 - 深色背景 */
.signinpanel .col-sm-7 {
    background: linear-gradient(135deg, #2A3F54 0%, #1a2a3a 100%);
    width: 60%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.signinpanel .signin-info {
    background: transparent;
    color: #fff;
    padding: 60px;
    max-width: 600px;
}

.signinpanel .logopanel {
    margin-bottom: 40px;
}

.signinpanel .logopanel h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}

.signinpanel .logopanel h1 span {
    color: #1ABB9C;
}

.signinpanel .signin-info h4 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 400;
}

.signinpanel .signin-info h4 strong {
    font-weight: 600;
    color: #1ABB9C;
}

.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.signinpanel .signin-info ul li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.signinpanel .signin-info ul li:last-child {
    border-bottom: none;
}

.signinpanel .signin-info ul li i {
    margin-right: 12px;
    color: #1ABB9C;
    width: 20px;
    font-size: 16px;
}

.signinpanel .signin-info strong {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.signinpanel .signin-info strong a {
    color: #1ABB9C;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.signinpanel .signin-info strong a:hover {
    color: #48c9b0;
    text-decoration: underline;
}

/* 右侧表单区域 - 白色背景 */
.signinpanel .col-sm-5 {
    width: 40%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.signinpanel form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.signinpanel form h4 {
    color: #2A3F54;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.signinpanel form p {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* 输入框样式 */
.signinpanel .form-control {
    display: block;
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 46px;
    font-size: 14px;
    color: #54667a;
    background: #f8f9fa;
    border: 2px solid #eef1f5;
    border-radius: 8px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none !important;
}

.signinpanel .form-control:focus {
    background: #fff;
    border-color: #1ABB9C;
    box-shadow: 0 0 0 4px rgba(26,187,156,0.1) !important;
}

.signinpanel .form-control::placeholder {
    color: #a0a8b0;
}

/* 用户名输入框 */
.signinpanel .uname {
    background: #f8f9fa url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231ABB9C"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat 16px center !important;
    background-size: 20px !important;
}

.signinpanel .uname:focus {
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231ABB9C"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat 16px center !important;
    background-size: 20px !important;
}

/* 密码输入框 */
.signinpanel .pword {
    background: #f8f9fa url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231ABB9C"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>') no-repeat 16px center !important;
    background-size: 20px !important;
}

.signinpanel .pword:focus {
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231ABB9C"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>') no-repeat 16px center !important;
    background-size: 20px !important;
}

/* 验证码输入框 */
.signinpanel .code {
    background: #f8f9fa !important;
    padding-left: 16px !important;
}

.signinpanel .code:focus {
    background: #fff !important;
}

/* 验证码图片 */
.signinpanel .imgcode {
    height: 48px;
    border-radius: 8px;
    border: 2px solid #eef1f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signinpanel .imgcode:hover {
    border-color: #1ABB9C;
}

/* 记住我复选框 */
.checkbox-custom {
    margin: 10px 0 20px 0;
    padding: 0;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    width: 18px;
    height: 18px;
}

.checkbox-custom label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    color: #54667a;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.checkbox-custom label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #dce3eb;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.checkbox-custom input[type="checkbox"]:checked + label::before {
    background: #1ABB9C;
    border-color: #1ABB9C;
}

.checkbox-custom input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* 登录按钮 */
.signinpanel .btn-success {
    background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,187,156,0.3);
}

.signinpanel .btn-success:hover {
    background: linear-gradient(135deg, #48c9b0 0%, #1ABB9C 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,187,156,0.4);
}

.signinpanel .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26,187,156,0.3);
}

/* 页脚 */
.signup-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    padding: 0 20px;
}

.signup-footer .pull-left {
    float: none !important;
    text-align: center;
}

/* 错误提示 */
label.error {
    color: #E74C3C;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 5px;
    display: block;
}

/* 装饰元素 */
.signinpanel .col-sm-7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><circle cx="80" cy="20" r="40" fill="rgba(26,187,156,0.05)"/><circle cx="20" cy="80" r="30" fill="rgba(26,187,156,0.03)"/></svg>') no-repeat;
    pointer-events: none;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .signinpanel {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .signinpanel .row {
        flex-direction: column;
    }

    .signinpanel .col-sm-7 {
        display: none;
    }

    .signinpanel .col-sm-5 {
        width: 100%;
        padding: 40px 30px;
        background: #fff;
    }

    .signup-footer {
        position: relative;
        margin-top: 20px;
        color: #666;
    }
}

@media screen and (max-width: 480px) {
    .signinpanel .col-sm-5 {
        padding: 30px 20px;
    }

    .signinpanel form h4 {
        font-size: 20px;
    }

    .signinpanel .form-control {
        height: 46px;
        padding: 10px 14px 10px 42px;
    }

    .signinpanel .btn-success {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}