* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d47a1 0%, #1a237e 100%);
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* 固定居中容器 */
.fixed-center-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    z-index: 100;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
}

.left-panel {
    flex: 1;
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(26, 35, 126, 0.7)),
    url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 36px;
    color: #64b5f6;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 20px;
    color: #90caf9;
    min-width: 36px;
    text-align: center;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 13px;
    opacity: 0.8;
}

.slogan {
    margin-top: auto;
}

.slogan h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 400px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slogan p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 400px;
}

.copyright {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 25px;
}

.right-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.97);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-header {
    margin-bottom: 40px;
    text-align: center;
}

.login-header h2 {
    font-size: 32px;
    color: #0d47a1;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.login-header h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, transparent, #0d47a1, transparent);
}

.login-header p {
    color: #7f8c8d;
    font-size: 15px;
    margin-top: 15px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1976d2;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 18px;
    font-size: 12px;
    background: white;
    padding: 0 5px;
    color: #1976d2;
    font-weight: 500;
}

.input-group label {
    position: absolute;
    top: 18px;
    left: 45px;
    font-size: 15px;
    color: #95a5a6;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 验证码区域 */
.captcha-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.captcha-input {
    flex: 1;
    position: relative;
}

.captcha-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1976d2;
    font-size: 16px;
}

.captcha-input input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.captcha-input input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.captcha-image {
    flex: 1;
    background: #f1f1f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.captcha-image:hover {
    border-color: #1976d2;
    transform: translateY(-2px);
}

.captcha-image span {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #333;
    text-decoration: line-through;
    transform: rotate(-5deg);
    opacity: 0.8;
}

.captcha-image .refresh {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #1976d2;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px;
    border-radius: 3px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1976d2;
}

.remember label {
    color: #2c3e50;
    font-size: 14px;
}

.forgot-password {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

.forgot-password:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #1976d2, #0d47a1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.login-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.login-button:hover:before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.5);
}

.signup-link {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 25px;
}

.signup-link a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.decoration {
    position: absolute;
    z-index: 0;
}

.decoration.circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(rgba(25, 118, 210, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.decoration.square {
    width: 250px;
    height: 250px;
    border: 15px solid rgba(25, 118, 210, 0.1);
    bottom: -125px;
    left: -125px;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite;
}

.decoration.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(13, 71, 161, 0.08);
    top: 80px;
    right: 150px;
    transform: rotate(30deg);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .fixed-center-container {
        width: 95%;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .fixed-center-container {
        width: 95%;
        height: auto;
    }

    .container {
        flex-direction: column;
    }

    .left-panel {
        padding: 30px;
    }

    .slogan h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .fixed-center-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .container {
        border-radius: 0;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .captcha-container {
        flex-direction: column;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(100, 181, 246, 0.6);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    to {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 错误提示样式 */
.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

/* 错误状态样式 */
.input-group.error input {
    border-color: #d32f2f !important;
    animation: shake 0.5s;
    padding-right: 40px;
}

/* 错误图标 */
.input-group.error::after {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d32f2f;
    font-size: 16px;
}

/* 震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.remember.error label {
    color: #d32f2f;
    animation: shake 0.5s;
}

.remember.error input {
    accent-color: #d32f2f;
}

/* 验证码错误状态样式 */
.captcha-container.error .captcha-input input {
    border-color: #d32f2f !important;
    animation: shake 0.5s;
    padding-right: 40px;
}

.captcha-container.error .captcha-input::after {
    content: '\f057';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d32f2f;
    font-size: 16px;
}