:root {
    --primary-color: #4361ee;
    --secondary-color: #f72585;
    --success-color: #4cc9f0;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
}

#main-content{
    background: #f8f9fa;
}

.login .container-fluid{
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }
    
    .user-info {
        display: none;
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .login .container-fluid {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
        align-items: flex-start;
    }
    
    .userlogin {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        bottom: auto;
        padding: 20px;
        flex: none;
    }
    
    .card-signup {
        min-width: auto;
        min-height: auto;
        margin: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}
.userlogin{
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    z-index: 2;
    flex: 0 0 450px;
    border-left: 1px solid var(--border-color);
}
.col-login{
    width: 100%;
}
.card-signup {
    min-width: 400px;
    min-height: 500px;
    border-radius: 12px;
    border: none;
    background: #fff;
    padding: 0 50px;
}
.user-info{
    position: relative;
    width: 750px;
    height: 500px;
    /* background: linear-gradient(120deg, #fff6f2 0%, #ffffff 100%); */
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    border-radius: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    flex-shrink: 0;
}

.welcome-container {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 登录表单样式 - Bootstrap 5 适配 */
.card-signup .card-header {
    background: transparent;
    border: none;
    padding: 30px 40px 20px;
    text-align: center;
}

.card-signup .card-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 20px 0;
}

.card-signup .card-body {
    padding: 0 40px 30px;
}

.input-group {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.input-group-text {
    background-color: var(--light-bg);
    border: none;
    border-right: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    color: #666;
    font-size: 16px;
    padding: 12px 15px;
}

.input-group:focus-within .input-group-text {
    color: var(--primary-color);
    background-color: #fff;
}

.form-control {
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.form-control::placeholder {
    color: #999;
}

#imgCaptcha {
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: opacity 0.3s;
    height: 38px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    z-index: 998;
}

#imgCaptcha:hover {
    opacity: 0.8;
}

#error-message {
    color: #dc3545;
    text-align: center;
    margin: 15px 0;
    min-height: 20px;
    font-size: 14px;
    background-color: #fff5f5;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    display: none;
}

#error-message:not(:empty) {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
    opacity: 0;
    transform: translateY(-10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-primary:active {
    transform: translateY(0);
}

.form-links {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.form-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.form-link:hover {
    color: var(--secondary-color);
}

.form-link:hover::after {
    width: 100%;
}

.divider {
    width: 100%;
    text-align: center;
    position: relative;
    margin: 15px 0;
    color: #999;
    font-size: 13px;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}

.divider span {
    background-color: #fff;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .user-info {
        display: none;
    }
    
    .login .container-fluid {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .userlogin {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        bottom: auto;
        padding: 20px;
    }
    
    .card-signup {
        min-width: auto;
        min-height: auto;
        margin: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .card-signup .card-header,
    .card-signup .card-body {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 18px;
    }
    
    .features-container {
        flex-direction: column;
        align-items: center;
    }
}