* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
}

.login-container {
    width: 100%;
    display: flex;
    min-height: 100vh;
}

/* 左侧品牌展示区 */
.left-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 右侧登录表单区 */
.right-panel {
    width: 520px;
    background: white;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 30px rgba(0,0,0,0.08);
}

.login-header {
    margin-bottom: 50px;
}

.login-header h2 {
    font-size: 32px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 12px;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    background: #f1f5f9;
    border-radius: 28px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    background: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-icon {
    color: #94a3b8;
    margin-right: 14px;
    font-size: 20px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: #fff;
    border-radius: 18px;
    padding: 6px 12px;
    outline: none;
    font-size: 18px;
    color: #1e293b;
}

.input-wrapper input::placeholder {
    color: #f54242;
}

.captcha-row {
    display: flex;
    gap: 18px;
}

.captcha-row .input-wrapper {
    flex: 1;
}

.captcha-img {
    width: 130px;
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: #1890ff;
    transform: scale(1.05);
}

.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.remember-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.remember-row label {
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
}

.role-tabs {
    display: flex;
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.role-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.role-tab:hover {
    background: #f1f5f9;
}

.role-tab.active {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    font-weight: 600;
}

.role-tab .role-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
    letter-spacing: 2px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
}

.login-btn:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 35px 0;
    color: #94a3b8;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 18px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 35px;
}

.feature-item {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 26px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #e2e8f0;
    transform: translateY(-3px);
}

.footer-info {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    line-height: 2;
    margin-top: auto;
}

.footer-info a {
    color: #1890ff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* 滑块验证码样式 */
.slider-container {
    margin-top: 24px;
}

.slider-track {
    width: 100%;
    height: 48px;
    background: #f1f5f9;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.slider-notch {
    position: absolute;
    top: 0;
    height: 48px;
    width: 52px;
    z-index: 1;
    background: #e2e8f0;
    border-radius: 24px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.12), 0 0 0 2px rgba(0,0,0,0.06);
}

.slider-thumb {
    width: 52px;
    height: 48px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-radius: 24px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    transition: background 0.3s;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.slider-thumb.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.slider-text {
    text-align: center;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

.slider-text.success {
    color: #10b981;
    font-weight: 500;
}

/* 登录loading遮罩层优化 */
.blockUI.blockOverlay {
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.blockUI.blockMsg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    top: 46% !important;
}

.blockMsg .loaderbox {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 230px;
    padding: 38px 48px;
    color: #1e293b !important;
    font-size: 15px;
    font-weight: 500;
    background-color: rgba(255,255,255,0.95) !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.2) !important;
    letter-spacing: 0.5px;
}

.blockMsg .loaderbox .loading-activity {
    float: none !important;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: solid 3px transparent;
    border-top-color: #1890ff;
    border-left-color: #1890ff;
    border-right-color: #dbeafe;
    border-bottom-color: #dbeafe;
    border-radius: 50%;
    animation: login-spinner 650ms linear infinite;
}

@keyframes login-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录按钮loading态 */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .right-panel {
        padding: 50px 35px;
    }

    .brand-title {
        font-size: 40px;
    }

    .brand-subtitle {
        font-size: 20px;
    }

    .login-header h2 {
        font-size: 28px;
    }
}