/* ===== 现代化登录页面样式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-body {
    font-family: 'Source Sans Pro', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    overflow: hidden;
}

.modern-login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===== 左侧背景区域 ===== */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.logo-section {
    margin-bottom: 60px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.logo-icon i {
    font-size: 40px;
    color: white;
}

.system-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.system-description {
    max-width: 400px;
    margin: 0 auto;
}

.system-description h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.system-description p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* 装饰元素 */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 20%;
    background: rgba(255, 255, 255, 0.15);
    animation-delay: 10s;
}

.stripe {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 10px;
}

.stripe-1 {
    width: 300px;
    height: 150px;
    top: 5%;
    left: 10%;
    transform: rotate(-15deg);
}

.stripe-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 5%;
    transform: rotate(25deg);
}

.stripe-3 {
    width: 100px;
    height: 250px;
    top: 30%;
    left: 5%;
    transform: rotate(-30deg);
}

.square {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.square-1 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 30%;
    transform: rotate(15deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

/* ===== 右侧登录表单区域 ===== */
.login-right {
    width: 500px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.theme-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px;
}

.theme-btn,
.lang-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f7fa;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #6c757d;
}

.theme-btn:hover,
.lang-btn:hover {
    background: #e9ecef;
    color: #667eea;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.login-header .subtitle {
    color: #718096;
    font-size: 14px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 45px 12px 45px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: #667eea;
}

.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* 图形验证码样式 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input-wrap {
    flex: 1;
    max-width: 140px;
}

.captcha-img {
    height: 46px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.captcha-refresh {
    width: 38px;
    height: 38px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #667eea;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.captcha-refresh:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 复选框和链接 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.checkbox-text {
    color: #4a5568;
    font-size: 14px;
}

.forgot-link {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #718096;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 20px;
    }

    .login-header h2 {
        font-size: 28px;
    }

    .modern-input,
    .btn-login {
        height: 45px;
    }

    .captcha-img {
        height: 42px;
    }
}

/* 错误提示样式 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}
