* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 20px;
}
.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-visual {
    flex: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.login-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}
.login-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}
.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.login-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}
.brand-name {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.brand-slogan {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
.visual-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-header {
    margin-bottom: 40px;
}
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 14px;
    color: #888;
}
.login-form {
    width: 100%;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.form-group input::placeholder {
    color: #aaa;
}
.error-message {
    background: linear-gradient(135deg, #fff1f0 0%, #ffe7e6 100%);
    border: 1px solid #ffccc7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: #ff4d4f;
    font-size: 14px;
}
.error-message ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.failed-warning {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    color: #faad14;
    font-size: 13px;
    text-align: center;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.login-btn:active {
    transform: translateY(0);
}
.login-footer {
    margin-top: 30px;
    text-align: center;
}
.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.login-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}
.login-footer .divider {
    margin: 0 12px;
    color: #ddd;
}
.back-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.slider-captcha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.slider-captcha-overlay.show {
    display: flex;
}
.slider-captcha-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 380px;
    width: 90%;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.slider-captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}
.slider-captcha-close {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    line-height: 1;
    transition: color 0.3s;
}
.slider-captcha-close:hover {
    color: #666;
}
.slider-captcha-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 18px;
}
.slider-captcha-background {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.slider-captcha-puzzle {
    position: absolute;
    top: 55px;
    left: 0;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.slider-captcha-track {
    position: relative;
    height: 44px;
    background: #f5f5f5;
    border-radius: 22px;
    overflow: hidden;
}
.slider-captcha-track::before {
    content: '向右拖动滑块填充拼图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #999;
}
.slider-captcha-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
    transition: width 0.1s ease;
}
.slider-captcha-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 54px;
    height: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: left 0.1s ease;
    touch-action: none;
    -webkit-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.slider-captcha-handle::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
    transform: rotate(-45deg);
}
.slider-captcha-refresh {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.slider-captcha-refresh:hover {
    transform: rotate(180deg);
}
.slider-captcha-refresh::after {
    content: '\27f3';
    font-size: 18px;
    color: #667eea;
}
.slider-captcha-success {
    color: #20c997;
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}
.slider-captcha-error {
    color: #dc3545;
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }
    .login-visual {
        padding: 40px 30px;
    }
    .login-image {
        max-width: 250px;
        margin-bottom: 25px;
    }
    .brand-name {
        font-size: 28px;
    }
    .visual-footer {
        display: none;
    }
    .login-form-section {
        padding: 40px 30px;
    }
    .back-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(102, 126, 234, 0.9);
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .login-visual {
        padding: 30px 20px;
    }
    .login-form-section {
        padding: 30px 20px;
    }
    .login-title {
        font-size: 24px;
    }
    .brand-name {
        font-size: 24px;
    }
}
