/* 登录页面样式 */
.login-main {
    min-height: calc(100vh - 178px);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.night-mode .login-main {
    background: #1a1a1a;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

/* 登录内容 - 桌面端左右布局 */
.login-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0 0;
    position: relative;
    padding-left: 40px;
}

/* 中间分隔线 */
.login-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

/* 左侧插图区域 */
.illustration-section {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 20px;
}

.illustration-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* 右侧表单区域 */
.form-section {
    flex: 1.2;
    max-width: 500px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px 20px 10px;
}

/* 登录卡片 */
.login-card {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.night-mode .login-card {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 登录标题 */
.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

.night-mode .login-title {
    color: #e0e0e0;
}

/* 登录表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 输入组 */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #FF7537;
    box-shadow: 0 0 0 2px rgba(255, 117, 55, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

.night-mode .input-group input {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

.night-mode .input-group input:focus {
    border-color: #FF7537;
    box-shadow: 0 0 0 2px rgba(255, 117, 55, 0.2);
}

.night-mode .input-group input::placeholder {
    color: #666;
}

/* 验证码组 */
.verification-group {
    display: flex;
    flex-direction: column;
}

.verification-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.verification-input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 12px 120px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.verification-input-wrapper input:focus {
    outline: none;
    border-color: #FF7537;
    box-shadow: 0 0 0 2px rgba(255, 117, 55, 0.1);
}

.verification-input-wrapper input::placeholder {
    color: #999;
}

.night-mode .verification-input-wrapper input {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

.night-mode .verification-input-wrapper input:focus {
    border-color: #FF7537;
    box-shadow: 0 0 0 2px rgba(255, 117, 55, 0.2);
}

.night-mode .verification-input-wrapper input::placeholder {
    color: #666;
}

/* 验证码按钮 */
.verification-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 16px;
    background: #FF7537;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 90px;
}

.verification-btn:hover {
    background: #e66a2e;
}

.verification-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 协议区域 */
.agreement-section {
    margin-bottom: 8px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

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

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

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

.agreement-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.agreement-text {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.night-mode .agreement-text {
    color: #999;
}

/* 协议链接 */
.terms-link {
    color: #FF7537;
    text-decoration: none;
    font-weight: 500;
}

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

/* 登录提交按钮 */
.login-submit-btn {
    width: 100%;
    height: 48px;
    background: #FF7537;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.login-submit-btn:hover {
    background: #e66a2e;
    transform: translateY(-1px);
}

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

/*************** kevin 新增  其它方式登录 *********************/
.other-login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-login-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
}

.social-login-item span {
    font-size: 13px;
    color: #333;
}



/* 桌面端确保左右布局 */
@media (min-width: 769px) {
    .login-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        position: relative;
        margin: 0 auto 0 0;
        padding-left: 40px;
    }
    
    .login-content::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: #e0e0e0;
        transform: translateX(-50%);
    }
    
    .illustration-section {
        flex: 0.8;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 600px;
        padding: 20;
    }
    
    .form-section {
        flex: 1.2;
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 500px;
        padding: 20px 20px 20px 10px;
    }
}

/* 平板端响应式 */
@media (max-width: 1024px) and (min-width: 769px) {
    .login-content {
        gap: 60px;
        justify-content: space-between;
    }
    
    .login-content::before {
        display: none;
    }
    
    .illustration-section {
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .form-section {
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .illustration-image {
        max-height: 400px;
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .login-main {
        padding: 40px 20px;
    }
    
    .login-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        justify-content: center;
    }
    
    .login-content::before {
        display: none;
    }
    
    .illustration-section {
        order: 1;
        min-height: 300px;
        padding: 20px;
    }
    
    .illustration-image {
        max-height: 300px;
    }
    
    .form-section {
        order: 2;
        padding: 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 22px;
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .login-main {
        padding: 20px 15px;
    }
    
    .login-content {
        gap: 30px;
    }
    
    .illustration-image {
        max-height: 250px;
    }
    
    .login-card {
        padding: 24px 16px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .input-group input {
        height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .verification-input-wrapper input {
        padding: 10px 100px 10px 14px;
        height: 44px;
    }
    
    .verification-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .login-submit-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .agreement-text {
        font-size: 13px;
    }
    
    .checkbox-custom {
        width: 16px;
        height: 16px;
    }
}